transposition is a simple case of adding a constant to the pitch value in each 
midi note. That seems feasible to do realtime but you have to learn more on how 
the midi notes are accessed via the midistream obviously. I would look at how 
TMidiplayer is handing the data over to TTrackoutputs in the source code. Have 
you tried e-mailing the author of those components?
 
DJS

TompaD <[EMAIL PROTECTED]> wrote:
David Smith wrote:

>How are the MIDI notes in the file accessed by the component? 
>
I�m not sure how the file is accessed, but the midifile is loaded into 
MidiData1(component)
......and then I get lost...somehow the MidiData1 is controlled by 
MidiPlayer1(component)
and MidiPlayer1 outputs all to the TrackOutputs1(component).

>Look at how the MIDI file is held in memory. Is it an array? 
>
I�m not sure here too (yes I�m no pro :-)), but there is a MidiTrackStream.

>Each MIDI note is a sequence of numbers with specific meaning assigned to 
>each. You have to add a constant to each value representing pitch. Iterating 
>through the entire array would be necessary to transpose the notes.
> 
>  
>
Do you have any opinion about if it�s possible to do "live" while the 
midi is playing.
Or is it something you do before you play the midi? (With an ordinarie P2-4)

Regards
TompaD




-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 



---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
  
   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


                
---------------------------------
Do you Yahoo!?
 Yahoo! Small Business - Try our new resources site! 

[Non-text portions of this message have been removed]



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to