Re: [Rosegarden-user] Opening MIDI file sets MIDI devices to "no port"

2016-11-06 Thread Ted Felix
On 11/06/2016 07:03 PM, D. Michael McIntyre wrote:
> The way it was supposed to work, when you imported MIDI it would try to
> fuzzy match you with "General MIDI Device" and try to assign that to a
> playable port.

   That sounds simple.  I'll keep it in mind when I get there.

> I remember the last time I fooled around importing old
> MIDI files, I had a lot of problems, to the point where I had to look at
> the file in something else to figure out what programs I should set up,
> and then I had to set all of that up manually in Rosegarden.

   Sure.  This sounds like the program changes in the MIDI file weren't 
at time zero.  The code now assumes that if the PC doesn't happen at 
time zero that it has to leave it alone and preserve the timing of the 
original file.

   The manual "fix" would be to dig through the events in the event 
editor, delete the BS/PC there and enter it into the MIPP.  It's not 
easy.  (Perhaps we could handle the case of a BS/PC before any other 
events on a track?  Can't remember if I considered that and decided 
against it.  It does change what the MIDI file is asking for.)

   And if there are multiple BS/PCs on a track, all bets are off.  A 
track will be set for piano in the MIPP and start playing violin at some 
point.  This is what drove the new behavior.  Will was having trouble 
importing MIDI files filled with BS/PC's on each track with the old 
code.  Now it preserves the BS/PCs throughout a track (it used to mangle 
them) and sets the MIPP for what it finds at time zero.

> You probably plugged a hole
> that used to make things work by accident or something.

   Heh.  All the time.

Ted.

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] Opening MIDI file sets MIDI devices to "no port"

2016-11-06 Thread Marko Randjelovic
Of course, since Rosegarden can save its project files, settings should  be
saved to .rg and restored when file is loaded. But since midi files are not
project files, nothing should be changed on loading such files.

On 6 November 2016 at 21:05, Marko Randjelovic  wrote:

> I would prefer keeping what user has chosen, including if program is
> terminated and started again. If user didn't yet choose anything or if
> chosen device is currently unavailable, then I would prefer assign to first
> port found.
>
> On 6 November 2016 at 18:01, Ted Felix  wrote:
>
>> On 11/05/2016 06:15 PM, Marko Randjelovic wrote:
>> > When current project is blank, if I open or import any MIDI file, both
>> > input and output MIDI devices are set to "no port". At start, Rosegarden
>> > sets devices to other then "no port".
>>
>>I'm actually looking at this right now in conjunction with sending
>> channel setups on load.  Should have something a bit more predictable in
>> a few weeks/months.
>>
>>We currently do some sort of fuzzy matching of ports to what might be
>> found in a .rg file.  Since MIDI files have no such concept as "devices"
>> I have no idea what we do.  That you ever get anything would be
>> surprising to me.
>>
>>What sort of behavior would you prefer?  Assign to the first port
>> found?
>>
>> Ted.
>>
>> 
>> --
>> Developer Access Program for Intel Xeon Phi Processors
>> Access to Intel Xeon Phi processor-based developer platforms.
>> With one year of Intel Parallel Studio XE.
>> Training and support from Colfax.
>> Order your platform today. http://sdm.link/xeonphi
>> ___
>> Rosegarden-user mailing list
>> Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
>> https://lists.sourceforge.net/lists/listinfo/rosegarden-user
>>
>
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user