Hi Peter,
With recent nightly builds of SoaS, I've noticed that MIDI devices are no
longer being recognized.
On builds through 0.90, devices were recognized correctly as long as the
device was inserted after Sugar was booted. Now this is not the case.
Below are the two log files, both for 0.92. Log 1 is when a MIDI device
(hw:1,0) is inserted before Sugar boot. This does not work now, nor did
it
recognize the device previously.
Log 2 is when the device is inserted after boot, and is what worked in
prior
versions of SoaS. The device is inserted before the activity is run The
log
indicates that the (ALSA) device is not being found.
I hope you can suggest what might be done about this, as my activities
are
majorly dependent on MIDI devices, as you know.
Thanks much -
Art Hunkins
Log 1 (MIDI device inserted prior to system boot):
** Message: pygobject_register_sinkfunc is deprecated (HippoCanvasBox)
time resolution is 1.111 ns
1302861517.648102 WARNING root: No gtk.AccelGroup in the top level
window.
1302861517.668884 WARNING root: No gtk.AccelGroup in the top level
window.
/usr/lib/python2.7/site-packages/sugar/graphics/window.py:195: Warning:
g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed
self.__vbox.pack_start(toolbar_box, False)
** (sugar-activity:1339): DEBUG: Got client ID
"107a95140eb1d17fec130286151826861000000012520000"
** (sugar-activity:1339): DEBUG: Setting initial properties
** (sugar-activity:1339): DEBUG: Received SaveYourself(SmSaveLocal,
!Shutdown, SmInteractStyleNone, !Fast) in state idle
** (sugar-activity:1339): DEBUG: Sending SaveYourselfDone(True) for
initial
SaveYourself
** (sugar-activity:1339): DEBUG: Received SaveComplete message in state
save-yourself-done
0dBFS level = 32768.0
Csound version 5.12 beta (float samples) Dec 27 2010
libsndfile-1.0.23
UnifiedCSD: /home/liveuser/Activities/SunMoonMusic.activity/SunMusic.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname: /tmp/csound-hGkCXW.orc
scorename: /tmp/csound-BDHtQc.sco
rtaudio: ALSA module enabled
rtmidi: ALSA module enabled
orch compiler:
51 (52) lines read
instr 1
sorting score ...
... done
Csound version 5.12 beta (float samples) Dec 27 2010
midi channel 1 using instr 1
midi channel 2 using instr 1
midi channel 3 using instr 1
midi channel 4 using instr 1
midi channel 5 using instr 1
midi channel 6 using instr 1
midi channel 7 using instr 1
midi channel 8 using instr 1
midi channel 9 using instr 1
midi channel 10 using instr 1
midi channel 11 using instr 1
midi channel 12 using instr 1
midi channel 13 using instr 1
midi channel 14 using instr 1
midi channel 15 using instr 1
midi channel 16 using instr 1
displays suppressed
0dBFS level = 32768.0
ALSA lib rawmidi_hw.c:233:(snd_rawmidi_hw_open) open /dev/snd/midiC1D0
failed: No such file or directory
ALSA: error opening MIDI input device: 'hw:1,0'
*** error opening MIDI in device: -1 (Unknown MIDI error)
inactive allocs returned to freespace
end of score. overall amps: 0.0 0.0
overall samples out of range: 0 0
1 errors in performance
1302861553.480113 WARNING root: No gtk.AccelGroup in the top level
window.
1302861553.489591 WARNING root: No gtk.AccelGroup in the top level
window.
Removing temporary file /tmp/csound-DyTPJs.srt ...
Removing temporary file /tmp/csound-BDHtQc.sco ...
Removing temporary file /tmp/csound-hGkCXW.orc ...
Exited with status 0, pid 1339 data (None, <open file '<fdopen>', mode
'w'
at 0xa314a18>, dbus.ByteArray('469e8e60c487c8337deb7e89986ba2cd54b5de59',
variant_level=1))
________________________________________
Log 2 (MIDI device inserted after system boot but before activity run -
*should work*):
** Message: pygobject_register_sinkfunc is deprecated (HippoCanvasBox)
time resolution is 1.111 ns
1302862461.448632 WARNING root: No gtk.AccelGroup in the top level
window.
1302862461.475639 WARNING root: No gtk.AccelGroup in the top level
window.
/usr/lib/python2.7/site-packages/sugar/graphics/window.py:195: Warning:
g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed
self.__vbox.pack_start(toolbar_box, False)
** (sugar-activity:1346): DEBUG: Got client ID
"108a1e9533619a3ed51302862462476700000012450000"
** (sugar-activity:1346): DEBUG: Setting initial properties
** (sugar-activity:1346): DEBUG: Received SaveYourself(SmSaveLocal,
!Shutdown, SmInteractStyleNone, !Fast) in state idle
** (sugar-activity:1346): DEBUG: Sending SaveYourselfDone(True) for
initial
SaveYourself
** (sugar-activity:1346): DEBUG: Received SaveComplete message in state
save-yourself-done
0dBFS level = 32768.0
Csound version 5.12 beta (float samples) Dec 27 2010
libsndfile-1.0.23
UnifiedCSD: /home/liveuser/Activities/SunMoonMusic.activity/SunMusic.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname: /tmp/csound-vKyrFJ.orc
scorename: /tmp/csound-qwUBHY.sco
rtaudio: ALSA module enabled
rtmidi: ALSA module enabled
orch compiler:
51 (52) lines read
instr 1
sorting score ...
... done
Csound version 5.12 beta (float samples) Dec 27 2010
midi channel 1 using instr 1
midi channel 2 using instr 1
midi channel 3 using instr 1
midi channel 4 using instr 1
midi channel 5 using instr 1
midi channel 6 using instr 1
midi channel 7 using instr 1
midi channel 8 using instr 1
midi channel 9 using instr 1
midi channel 10 using instr 1
midi channel 11 using instr 1
midi channel 12 using instr 1
midi channel 13 using instr 1
midi channel 14 using instr 1
midi channel 15 using instr 1
midi channel 16 using instr 1
displays suppressed
0dBFS level = 32768.0
ALSA: opened MIDI input device 'hw:1,0'
ALSA midi: No devices found.
orch now loaded
audio buffered in 128 sample-frame blocks
writing 512-byte blks of shorts to dac
SECTION 1:
inactive allocs returned to freespace
end of score. overall amps: 0.0 0.0
overall samples out of range: 0 0
0 errors in performance
2909 512-byte soundblks of shorts written to dac
Removing temporary file /tmp/csound-xQDgKd.srt ...
Removing temporary file /tmp/csound-qwUBHY.sco ...
Removing temporary file /tmp/csound-vKyrFJ.orc ...
0dBFS level = 32768.0
Csound version 5.12 beta (float samples) Dec 27 2010
libsndfile-1.0.23
UnifiedCSD: /home/liveuser/Activities/SunMoonMusic.activity/SunMusic.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname: /tmp/csound-vwxbnH.orc
scorename: /tmp/csound-cIsa0a.sco
rtaudio: ALSA module enabled
rtmidi: ALSA module enabled
orch compiler:
51 (52) lines read
instr 1
sorting score ...
... done
Csound version 5.12 beta (float samples) Dec 27 2010
midi channel 1 using instr 1
midi channel 2 using instr 1
midi channel 3 using instr 1
midi channel 4 using instr 1
midi channel 5 using instr 1
midi channel 6 using instr 1
midi channel 7 using instr 1
midi channel 8 using instr 1
midi channel 9 using instr 1
midi channel 10 using instr 1
midi channel 11 using instr 1
midi channel 12 using instr 1
midi channel 13 using instr 1
midi channel 14 using instr 1
midi channel 15 using instr 1
midi channel 16 using instr 1
displays suppressed
0dBFS level = 32768.0
ALSA lib rawmidi_hw.c:233:(snd_rawmidi_hw_open) open /dev/snd/midiC1D0
failed: Device or resource busy
ALSA: error opening MIDI input device: 'hw:1,0'
*** error opening MIDI in device: -1 (Unknown MIDI error)
1302862495.370362 WARNING root: No gtk.AccelGroup in the top level
window.
1302862495.375770 WARNING root: No gtk.AccelGroup in the top level
window.
inactive allocs returned to freespace
end of score. overall amps: 0.0 0.0
overall samples out of range: 0 0
1 errors in performance
Removing temporary file /tmp/csound-qReADE.srt ...
Removing temporary file /tmp/csound-cIsa0a.sco ...
Removing temporary file /tmp/csound-vwxbnH.orc ...
Exited with status 0, pid 1346 data (None, <open file '<fdopen>', mode
'w'
at 0x935ca18>, dbus.ByteArray('469e8e60c487c8337deb7e89986ba2cd54b5de59',
variant_level=1))