| 08-31-2007, 10:58 PM | #1 |
I am trying to create a system that will allow someone to use a midi style system to create music but from withing the wc3 engine. I imported a range of piano notes that I want to use. I was wondering if there was any way to not have a delay between music tracks that are played because a pause between notes is not gonna make for good music :) My idea was to maby use them all as sound variables however I do not want to redo all the coding if that will not help the problem. I am taking the txt file that is created from a midi by this program. I would like to also get a general idea of the memory that this will require as well as if it has ever been done before or attempted before. |
| 09-01-2007, 05:40 AM | #2 |
Never attempted as far as I know. |
| 09-01-2007, 07:38 AM | #3 |
Ok well I plan on just making a program to convert the txt file into JASS programming I am planning on this format: JASS:function F_S_4_1 takes nothing returns nothing local timer T = GetExpiredTimer() call PauseTimer(T) call ReleaseTimer(T) call StopSoundBJ( udg_Sound[1], false ) endfunction function G_S_4_1 takes nothing returns nothing local timer T = GetExpiredTimer() call PauseTimer(T) call ReleaseTimer(T) call StopSoundBJ( udg_Sound[1], false ) endfunction function Track_1 takes nothing returns nothing local timer T1 = NewTimer() local integer Track = 1 local sound S set S = udg_F_S_4 call PlaySoundBJ( S ) call SetSoundVolumeBJ( S, 100 ) set udg_Sound[Track] = S call TimerStart(T1, .25, true, function F_S_4_1()) set T1 = null set S = udg_G_S_4 call PlaySoundBJ( S ) call SetSoundVolumeBJ( S, 100 ) set udg_Sound[Track] = S call TimerStart(T1, 1.3, true, function G_S_4_1()) set T1 = null endfunction any ideas on better options ect? |
