Hi Bob,
For what they're worth, I'll tage some of my thoughts to the
discussion...
Post by bvdpPost by J.B. WoodHello, all. Just wondering if anyone is using the subject Python script
(http://mellowood.ca/xpmidi) that provides a GUI frontend to aplaymidi.
I'm interested in knowing if anyone has modified the script to allow
for a selection of some/all the MIDI files in a directory/playlist to be
played one after the other without further user intervention (except to
pause/end the current file playing). [....]
I've considered (briefly) of adding such a feature, but since it isn't
- what would the selection process be? Would you simple enable multiple
selections and then play?
Maybe the nicest scheme would be to start playing as soon as a
selection is made, but to add further selections th the current
playlist as they are made (rather than stopping the current piece
immediately). You'd probably need a mode-selector in the button
bar at the top to switch netween the current one-file-at-a-time
mode ("Single"?) and this mode ("Sequence"?).
Post by bvdp- would you continue to do the midi reset stuff after each song, or
would you wait 'til the end of the list?
I think it may have to be done between every song. I wrote a similar
sort of player that runs in Haiku, and I found that many midifiles
don't bother to set controller values to default values, and others
reset to non-default and leave them that way. Files in a sequence
could sound very wrong! So now I just reset everything between each
piece.
I like your trick of creating a temporary "reset.mid", but I'm not
sure you have to do it each time. Maybe create it once an startup
and delete it on quit? It's not exactly a big file, so accidentally
leaving it in /tmp wouldn't be a disaster! (:-))
Post by bvdp- what happens when you select a song when one is already playing?
If you're in "Sequence" mode, it should simply be added to the end of
the list.
Post by bvdp- what do you do about order? Selection order or something else?
Selection order seems most intuitive. For comparison, my Haiku
player uses the standard "filepanel" provided by the OS, where
a click selects a single file (and removes any prior selection),
a drag selects everything under the drag, a shift-click after
a first click selects the range between the clicks, and an alt-click
(or drag) will add to the previous selection. In the alt-click case,
play order is the selection order, otherwise it's the order in the
display. (Being a filepanel, it doesn't start playing on the first
selection as I suggested above. It needs a click on the "Open"
button to start. If you open the panel again to add files, though,
it just tags those onto the playing list.)
I guess to be fancy you could actually have a "playlist editor"
window, as I've seen in some audio players. That's a whole 'nother
beast, though.
Post by bvdp- duplicate selections? Play 2x or ignore?
Dunno. Probably should assume User Knows Best, and just add them
to the list.
Just my thoughts.
-- Pete --
--
============================================================================
The address in the header is a Spam Bucket -- replies will not be seen...
(If you do need to email, replace the account name with my true name.)
============================================================================