<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[ChipMusic.org - Help setting up LGPT on raspi]]></title>
	<link rel="self" href="https://chipmusic.org:80/forums/feed/atom/topic/24896/"/>
	<updated>2021-01-26T09:58:13Z</updated>
	<generator>PunBB</generator>
	<id>https://chipmusic.org/forums/topic/24896/help-setting-up-lgpt-on-raspi/</id>
		<entry>
			<title type="html"><![CDATA[Re: Help setting up LGPT on raspi]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264789/#p264789"/>
			<content type="html"><![CDATA[<p>The error seems to come from here: <a href="https://github.com/Mdashdotdashn/LittleGPTracker/blob/0ed729b46739e3df5e111c6fa4d548fde2d3b891/sources/Externals/RTAudio/RtAudio.cpp#L2609" target="_blank">https://github.com/Mdashdotdashn/Little &#133; .cpp#L2609</a></p><p>Maybe you should report the issue on github.</p><p>You can list the formats supported by your card:</p><div class="codebox"><pre><code>grep . /proc/asound/cards /proc/asound/card*/pcm*/sub*/{info,hw_params}|grep -Ei &#039;]|format&#039;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[cyberic]]></name>
				<uri>https://chipmusic.org/cyberic</uri>
			</author>
			<updated>2021-01-26T09:58:13Z</updated>
			<id>https://chipmusic.org/forums/post/264789/#p264789</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help setting up LGPT on raspi]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264769/#p264769"/>
			<content type="html"><![CDATA[<p>hello,</p><p>Coming back to this raspberry pi, I now want to use my ur242 usb-audio soundcard. In meanwhile I installed the last version of raspberry pi OS (named raspberry pi OS, here : <a href="https://www.raspberrypi.org/software/" target="_blank">https://www.raspberrypi.org/software/</a> ). </p><p>When i&#039;m on the desktop, my soundcard is good recognized, I see it and if i play a sound in VLC it works.<br />But from LGPT, the sound always come from hdmi. I tried that :</p><p>sudo ./lgpt.rpi-exe -AUDIOBUFFER=64 -AUDIODEVICE=hw:USB $* </p><br /><p>but it says that : </p><p>RtApiAlsa::getDeviceInfo: pcm device (hw:2,0) data format not supported by RtAudio.</p><p>pulseaudio is already installed<br />it&#039;s the same without AUDIOBUFFER=64</p>]]></content>
			<author>
				<name><![CDATA[MazHoot]]></name>
				<uri>https://chipmusic.org/MazHoot</uri>
			</author>
			<updated>2021-01-23T14:57:14Z</updated>
			<id>https://chipmusic.org/forums/post/264769/#p264769</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help setting up LGPT on raspi]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264605/#p264605"/>
			<content type="html"><![CDATA[<p>I get all the most things working right, but I hear a small latency with midi. I use LGPT to drive genMDM (awesome!!) additionnaly with LGPT samples and the sound of sega genesis is a little too late (microseconds) compare to LGPT samples. I use audio output of raspberry pi because I can&#039;t get my UR242 soundcard working and because sound is ok for me. I use usb to midi cable for drive genMDM.</p><p>I saw on LGPT wiki this :</p><p>&quot;MIDI Configuration</p><p>This setting is also W32 only. It can be use to delay the output of midi by a certain amount of milliseconds. For example, to delay it of 1 msecs:</p><p>&lt;CONFIG&gt;<br />&nbsp; &lt;MIDIDELAY value=&#039;1&#039;/&gt;<br />&lt;/CONFIG&gt;</p><p>also note: Because MIDI on PC is a bitch to synchronise and that the ONLY system that kind of worked was, surprisingly, the old MMSYSTEM audio system, I&#039;ve re-enabled it as an option. So, if you need good midi sync or good timing, you will NEED to use this. The latency isn&#039;t great but in our case it&#039;s not a problem. To enable the old ass audio system and enjoy pretty stable midi out, add an entry in the config.xml with &lt;AUDIOAPI value=&#039;MMSYSTEM&#039; /&gt;<br />&quot;</p><p>This should work only on windows right? Not on pi... and even if it worked, I don&#039;t want to delay midi, I want to delay sample for it sounds at the same time as midi. </p><p>But I tried MIDIDELAY value=&quot;2&quot; for see, I didn&#039;t notice any difference. I didn&#039;t tried MMSYSTEM because I understood that it&#039;s for sync and I don&#039;t want to sync anything it&#039;s only midi out notes, CCs and samples</p><p>For me that&#039;s really the ultimate config, and I will defintly use again genMDM with LGPT! (on lsdj it worked but it was too complicated)</p>]]></content>
			<author>
				<name><![CDATA[MazHoot]]></name>
				<uri>https://chipmusic.org/MazHoot</uri>
			</author>
			<updated>2020-12-20T19:49:51Z</updated>
			<id>https://chipmusic.org/forums/post/264605/#p264605</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help setting up LGPT on raspi]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264582/#p264582"/>
			<content type="html"><![CDATA[<p>Yea i think with my screen I had to use a custom screen out resolution! there are other screen mult values, so maybe try 3?</p><p>good loop!</p>]]></content>
			<author>
				<name><![CDATA[herr_prof]]></name>
				<uri>https://chipmusic.org/herr_prof</uri>
			</author>
			<updated>2020-12-16T14:17:42Z</updated>
			<id>https://chipmusic.org/forums/post/264582/#p264582</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help setting up LGPT on raspi]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264581/#p264581"/>
			<content type="html"><![CDATA[<p>&quot;I hate linux&quot; hahaha... I work on it every day hehe</p><p>I have my response! with help of raspberry community : <a href="https://www.raspberrypi.org/forums/viewtopic.php?f=63&amp;t=295060&amp;p=1780427#p1780427" target="_blank">https://www.raspberrypi.org/forums/view &#133; 7#p1780427</a></p><p>I just had to remove the &quot;exec&quot; word and it works. </p><p>#!/bin/sh<br />cd /home/pi/Desktop/lgpt/lgpt_DEB/bin<br />sudo ./lgpt.rpi-exe<br />sudo shutdown -h now</p><p>I think it should work also without sudo in my case. <br />I made a video just for fun when I was happy with midi working on lgpt :</p><p>at the end you can see the screen size which should be better if it was a little bit biger. I wait the rca video cable for test with it. Normally i&#039;m on the lowest resolution, and if I use the x2 trick in config.xml, it&#039;s bigger than the tv and display don&#039;t work.<br /><a href="https://www.youtube.com/watch?v=n7sUiQ3acYE&amp;ab_channel=MazHoot" target="_blank">https://www.youtube.com/watch?v=n7sUiQ3 &#133; el=MazHoot</a></p>]]></content>
			<author>
				<name><![CDATA[MazHoot]]></name>
				<uri>https://chipmusic.org/MazHoot</uri>
			</author>
			<updated>2020-12-16T13:57:56Z</updated>
			<id>https://chipmusic.org/forums/post/264581/#p264581</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help setting up LGPT on raspi]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264580/#p264580"/>
			<content type="html"><![CDATA[<p>Ah ive only done it from the terminal, maybe running it from the desktop overides the shutdown?</p><p>I hate linux!</p>]]></content>
			<author>
				<name><![CDATA[herr_prof]]></name>
				<uri>https://chipmusic.org/herr_prof</uri>
			</author>
			<updated>2020-12-16T13:18:53Z</updated>
			<id>https://chipmusic.org/forums/post/264580/#p264580</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help setting up LGPT on raspi]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264579/#p264579"/>
			<content type="html"><![CDATA[<p>The strange thing is that the two commands works, but not if the both are here. </p><p>If I only shudown in shell script, removing the exec lgpt command, then it boot and shutdown, but if there is the exec command of lgpt just before, then it start lgpt automatically at startup, but it not shutdown when I close lgpt and it just back me to the desktop. It seems that shell doesn&#039;t understand that I quit lgpt?</p><p>I also tried with python script for close, and with exec sudo but it&#039;s the same :</p><p>pig.sh</p><p>#!/bin/sh<br />cd /home/pi/Desktop/lgpt/lgpt_DEB/bin<br />exec sudo ./lgpt.rpi-exe<br />cd /home/pi/.config/lxsession/LXDE-pi<br />sudo python shut.py</p><p>shut.py</p><p>#!/usr/bin/env python3</p><p>from subprocess import call<br />call(&quot;sudo shutdown -h now&quot;, shell=True)</p>]]></content>
			<author>
				<name><![CDATA[MazHoot]]></name>
				<uri>https://chipmusic.org/MazHoot</uri>
			</author>
			<updated>2020-12-16T10:13:18Z</updated>
			<id>https://chipmusic.org/forums/post/264579/#p264579</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help setting up LGPT on raspi]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264578/#p264578"/>
			<content type="html"><![CDATA[<p>Now i&#039;m using a .sh file like you where lgpt is successfuly started and where it&#039;s suppose to close after lgpt quit but it&#039;s not working I tryed </p><p>sudo shutdown -h now<br />sudo halt<br />sudo poweroff</p><p>none of that works</p>]]></content>
			<author>
				<name><![CDATA[MazHoot]]></name>
				<uri>https://chipmusic.org/MazHoot</uri>
			</author>
			<updated>2020-12-15T23:16:29Z</updated>
			<id>https://chipmusic.org/forums/post/264578/#p264578</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help setting up LGPT on raspi]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264577/#p264577"/>
			<content type="html"><![CDATA[<p>Oh ok! I thought if I did that it would shutdown piggy just after it started. For my part I placed the command directly in autostart file which is like this :</p><p>@lxpanel --profile LXDE-pi<br />@pcmanfm --desktop --profile LXDE-pi<br />@xscreensaver -no-splash<br />@point-rpi<br />@./Desktop/lgpt/lgpt_DEB/bin/lgpt.rpi-exe</p><p>so I can add @shutdown -h now at the end? I will try that</p><p>For the screen width, according to the cash express close to my house, this video rca cable doesn&#039;t exist haha... I have to buy it on internet... the x2 option in config.xml don&#039;t work if it&#039;s enable piggy boot only in window and it&#039;s bigger than the screen size... Maybe this cable will be the solution, I hope. If not, it&#039;s playable like that, not optimum but ok.</p><p>EDIT : hum... that&#039;s what I thought I tested what I said and it just close raspi after piggy started... I have to try with an .sh file like what you did</p>]]></content>
			<author>
				<name><![CDATA[MazHoot]]></name>
				<uri>https://chipmusic.org/MazHoot</uri>
			</author>
			<updated>2020-12-15T22:23:16Z</updated>
			<id>https://chipmusic.org/forums/post/264577/#p264577</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help setting up LGPT on raspi]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264576/#p264576"/>
			<content type="html"><![CDATA[<p>So you can add a command that is like SHUTDOWN after the piggy command. Once pig ENDS it will then do the shutdown command, which will do all the nice disk unmountingstuff</p><p>This is from memory but I would actually run a pig.sh file in my autostart that was like</p><p>#!/bin/sh<br />cd /mnt/sd/apps/lgpt<br />exec ./lgpt.exe<br />shutdown -h now</p>]]></content>
			<author>
				<name><![CDATA[herr_prof]]></name>
				<uri>https://chipmusic.org/herr_prof</uri>
			</author>
			<updated>2020-12-15T19:39:53Z</updated>
			<id>https://chipmusic.org/forums/post/264576/#p264576</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help setting up LGPT on raspi]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264575/#p264575"/>
			<content type="html"><![CDATA[<p>I sucessfully start lgpt when starting raspberry pi with placing a command in /.config/lxsession/LXDE-pi/autostart</p><p>But how I can shutdown automatically rapspberry pi after quitting Lgpt?</p>]]></content>
			<author>
				<name><![CDATA[MazHoot]]></name>
				<uri>https://chipmusic.org/MazHoot</uri>
			</author>
			<updated>2020-12-15T17:49:17Z</updated>
			<id>https://chipmusic.org/forums/post/264575/#p264575</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help setting up LGPT on raspi]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264574/#p264574"/>
			<content type="html"><![CDATA[<p>Yea or setup the HDMI out to have a smaller resolution <a href="https://www.raspberrypi.org/documentation/configuration/config-txt/video.md" target="_blank">https://www.raspberrypi.org/documentati &#133; t/video.md</a></p>]]></content>
			<author>
				<name><![CDATA[herr_prof]]></name>
				<uri>https://chipmusic.org/herr_prof</uri>
			</author>
			<updated>2020-12-15T16:05:34Z</updated>
			<id>https://chipmusic.org/forums/post/264574/#p264574</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help setting up LGPT on raspi]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264573/#p264573"/>
			<content type="html"><![CDATA[<p>@cyberic :<br />I can&#039;t resize manually it don&#039;t work, the cursor don&#039;t transform to resizing tool.</p><p>@herr_prof:<br />On my Raspi I have only hdmi out. I can&#039;t use something else, which should be better.</p><p>EDIT : Ohh O.o! wait, I have an icon on mini jack output that seems to mean I can have video output too with minijack. I didn&#039;t know that! How use it? with a mini jack to rca + video cable (minijack to white, red and yellow)? I have to find one for test!</p>]]></content>
			<author>
				<name><![CDATA[MazHoot]]></name>
				<uri>https://chipmusic.org/MazHoot</uri>
			</author>
			<updated>2020-12-15T15:22:51Z</updated>
			<id>https://chipmusic.org/forums/post/264573/#p264573</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help setting up LGPT on raspi]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264572/#p264572"/>
			<content type="html"><![CDATA[<p>also maybe try screenmult</p>]]></content>
			<author>
				<name><![CDATA[herr_prof]]></name>
				<uri>https://chipmusic.org/herr_prof</uri>
			</author>
			<updated>2020-12-15T14:52:52Z</updated>
			<id>https://chipmusic.org/forums/post/264572/#p264572</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help setting up LGPT on raspi]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264571/#p264571"/>
			<content type="html"><![CDATA[<p>are you using HDMI? I always used the rca video out, so yea you might need to change the default resolution to something more 640ish</p>]]></content>
			<author>
				<name><![CDATA[herr_prof]]></name>
				<uri>https://chipmusic.org/herr_prof</uri>
			</author>
			<updated>2020-12-15T14:51:52Z</updated>
			<id>https://chipmusic.org/forums/post/264571/#p264571</id>
		</entry>
</feed>
