Can someone do this with pd 0.44:
1) hack dialog_midi.tcl: a: in the pdtk_[whatever] proc add this:
pdtk_post "Midi outdev1 is $outdev1\n"
b: in the pdtk_*alsa* proc add this:
pdtk_post "Alsa Midi outdev1 is $outdev1\n"
2) Go to "Media" (or wherever it is) bring up the non-alsa Midi dialog, do some settings and click "Apply" 3) Go to "Media" (or wherever it is) bring up the alsa Midi dialog, do some settings and click "Apply" 4) Go to "Media" (or wherever it is) bring up the non-alsa Midi dialog, do some settings and click "Apply"
In the console, outdev1 should get a sane dev number, like a single digit number.
If this isn't the case, please post the output. I'm getting crazy outdev number at step 4.
-Jonathan
On 2013-07-25 01:32, Jonathan Wilkes wrote:
Can someone do this with pd 0.44:
- hack dialog_midi.tcl:
a: in the pdtk_[whatever] proc add this:
pdtk_post "Midi outdev1 is $outdev1\n"
b: in the pdtk_*alsa* proc add this:
pdtk_post "Alsa Midi outdev1 is $outdev1\n"
- Go to "Media" (or wherever it is) bring up the non-alsa Midi dialog,
do some settings and click "Apply" 3) Go to "Media" (or wherever it is) bring up the alsa Midi dialog, do some settings and click "Apply" 4) Go to "Media" (or wherever it is) bring up the non-alsa Midi dialog, do some settings and click "Apply"
In the console, outdev1 should get a sane dev number, like a single digit number.
If this isn't the case, please post the output. I'm getting crazy outdev number at step 4.
This is the result of 0.44.0-extended-20130512. The system is Kubuntu 12.04 Linux 3.2.0-37-generic-pae 32-bit.
The procedure is quite exact, so I interpreted it as: - "the pdtk_[whatever]" = ::dialog_midi::pdtk_midi_dialog - "pdtk_*alsa*" = ::dialog_midi::pdtk_alsa_midi_dialog
- non-alsa Midi dialog = Media > default-MIDI - alsa Midi dialog = Media > ALSA-MIDI The two midi dialog boxes can be selected with the two *-MIDI buttons. The button Media > MIDI settings... brings up the latest selected Midi dialog.
Here the weird numbers already start at step 2. I didn't test the actual Midi devices.
Results:
2 Midi outdev1 is 1
Click Apply: tried to open -1080869540 read/write; got 19
tried to open -1080869540 read/write; got -1
tried to open -1080869540 read-only; got -1
couldn't open MIDI input device /dev/midi5 tried to open -1080869540 write-only; got 20
opened 1 MIDI input device(s) and 2 MIDI output device(s).
3 Opened Alsa Client 128 in:1 out:1
Alsa Midi outdev1 is 2
Click Apply: Opened Alsa Client 128 in:2 out:2
4 tried to open -1080869540 read/write; got 19
opened 1 MIDI input device(s) and 1 MIDI output device(s). Midi outdev1 is 2
Click Apply: tried to open -1080869540 read-only; got 19
tried to open -1080869540 write-only; got 20
opened 1 MIDI input device(s) and 1 MIDI output device(s).
-Jonathan
Fred Jan