Breakers Dozen Brian Wong N-trench is a xenharmonic composition designed to explore perception of tuning and harmony. Three equal temperament tunings are used in this piece : 12-TET (Standard Western tuning), 11-TET, and 13-TET. The basic Sinus synth is used in Sound Layer 1 to create an additive synthesis drone in one of the three tunings. The beginning section of the song is in a rotating progression of 12-TET, 11-TET, 13-TET, which are "blended" together by the drone, which is created by a cellular automata algorithm. Notes durations can vary, which serves to blur the transition from one tuning to another. By effecting changes to the 2d array for each cellular automata section it is possible to alter each section so that it is unique,and to "play" the algorithm until you get a a version that blends well with the other parts. The bell-like tones are created with an additive synth "Phadd", which can change spectrum to match the tuning on a per note basis. This allows creation of an intrument with a distinct character that can be discerned in all three tunings. A granular synth "Granny" with a degree of grain frequency randomness is included to further blur the spectral situation. 48000 50 2 96000 1 2 true false false false true true true true false false true true true true false false 0 false Sinus ;[once]( gi_sine ftgen 0,0,65536,10,1 ;) 0dbfs = 1.0 kamp linseg 0,p3*.5,ampdbfs(p5),p3*.5,0 ; simple linear amplitude envelope a0 poscil3 kamp,p4,gi_sine,p6 ; sinewave signal generator blueMixerOut a0*(sqrt(2)/2*cos(p7)+sin(p7)),a0*(sqrt(2)/2*cos(p7)-sin(p7)) ; panned output Phadd-03 RPM can do either ring or phase modulation - by Brian Wong, 2010 ;[once]( gi_t2h12TET_<INSTR_ID> ftgen 0,0,32,-2,12,2,100,50,1.0,1.05946309,1.12246205,1.18920712,1.25992105,1.33483985,1.41421356,1.49830708,1.58740105,1.68179283,1.78179744,1.88774863,2.0 gi_t2h11TET_<INSTR_ID> ftgen 0,0,32,-2,12,2,100,50,1.0,1.06504109,1.13431252,1.20808944,1.28666490,1.370335098,1.45948011,1.55440628,1.65550656,1.76318251,1.87786182,2.0 gi_t2h13TET_<INSTR_ID> ftgen 0,0,32,-2,14,2,100,50,1.0,1.05476608,1.11253148,1.17346046,1.23772629,1.30551170,1.37700945,1.45242286,1.53196636,1.61586614,1.70436079,1.79770195,1.89615503,2.0 ;) 0dbfs = 1 if (p6==0) then itfn = gi_t2h12TET_<INSTR_ID> ifm1 = 1.88774863 ifm2 = 3.56359489 ifm3 = 6.72717137 ifm4 = 12.6992085 elseif (p6==1) then itfn = gi_t2h11TET_<INSTR_ID> ifm1 = 1.87786182 ifm2 = 3.52636501 ifm3 = 6.62202622 ifm4 = 12.4352502 elseif (p6==2) then itfn = gi_t2h13TET_<INSTR_ID> ifm1 = 1.89615503 ifm2 = 3.59540389 ifm3 = 6.81744318 ifm4 = 12.9269291 endif ifq cpstuni p4,itfn ; p4 = cpstuni note -> frequency isine = gi_sine iamp = ampdbfs(p5) ; amplitude = p5 knv transeg .0001,p9,p10,p11,p3-p9,p12,.0001 ; amplitude envelope afq0 = ifq ; osc0 a0 phastab afq0 a0 = a0*knv afq1 = ifq*ifm1 ; osc1 a1 phastab afq1 a1 = a1*(knv^2) afq2 = ifq*ifm2 ; osc2 a2 phastab afq2 a2 = a2*(knv^4) afq3 = ifq*ifm3 a3 phastab afq3 ; osc3 a3 = a3*(knv^3) afq4 = ifq*ifm4 ; osc4 a4 phastab afq4 a4 = a4*(knv^5) aout = (a0+a1+a3+a3+a4)*.2 ; mix oscillators aout dcblock aout ; dcblock aout = aout*iamp ; scale amplitude kpan line p7,p3,p8 ; panning line blueMixerOut aout*(sqrt(2)/2*cos(kpan)+sin(kpan)),aout*(sqrt(2)/2*cos(kpan)-sin(kpan)) ; OUTPUT phastab a a ain xin aphs phasor ain ; here is where the phase modulation is applied aout table3 aphs, gi_sine, 1, 0, 1 ; phase is used with the wave xout aout Granny-00 ;[once]( gi_t2h12TET_<INSTR_ID> ftgen 0,0,32,-2,12,2,100,50,1.0,1.05946309,1.12246205,1.18920712,1.25992105,1.33483985,1.41421356,1.49830708,1.58740105,1.68179283,1.78179744,1.88774863,2.0 gi_t2h11TET_<INSTR_ID> ftgen 0,0,32,-2,12,2,100,50,1.0,1.06504109,1.13431252,1.20808944,1.28666490,1.370335098,1.45948011,1.55440628,1.65550656,1.76318251,1.87786182,2.0 gi_t2h13TET_<INSTR_ID> ftgen 0,0,32,-2,14,2,100,50,1.0,1.05476608,1.11253148,1.17346046,1.23772629,1.30551170,1.37700945,1.45242286,1.53196636,1.61586614,1.70436079,1.79770195,1.89615503,2.0 gi_wfn_<INSTR_ID> ftgen 0,0,512,20,2 ; window for grain amplitude envelope ;) 0dbfs = 1.0 if (p7==0) then itfn = gi_t2h12TET_<INSTR_ID> elseif (p7==1) then itfn = gi_t2h11TET_<INSTR_ID> elseif (p7==2) then itfn = gi_t2h13TET_<INSTR_ID> endif ifq0 cpstuni p4, itfn ; p4 = cpstuni note -> frequency ifq1 cpstuni p5, itfn ; p5 = cpstuni note -> frequency ifq2 cpstuni p6, itfn ; p6 = cpstuni note -> frequency kamp transeg .001, p22,p24, p17, p3*p23,p25, p18, p3-(p3*p23),p26, .001 ; amplitude per grain kpitch expseg ifq0, p3*.5, ifq1, p3*.5, ifq1 ; pitch of each grain kdens expseg p8, p3*.5, p9, p3*.5, p10 ; density in grains per second kampoff = p11 ; maximum amplitude variation per grain kpitchoff expseg p19, p3*.5, p20, p3*.5, p21 ; maximum pitch variation per grain in Hz kgdur expseg p12, p3*.5, p13, p3*.5, p14 ; grain duration in seconds igfn = gi_sine ; grain wave table iwfn = gi_wfn_<INSTR_ID> ; grain amplitude envelope imgdur = 1 ; maximum value for kgdur a0 grain kamp, kpitch, kdens, kampoff, kpitchoff, kgdur, igfn, iwfn, imgdur kpan line p15,p3,p16 ; panning line blueMixerOut a0*(sqrt(2)/2*cos(kpan)+sin(kpan)),a0*(sqrt(2)/2*cos(kpan)-sin(kpan)) ; panned output true 0.0 1 Master 3.85 false false 2 Master 0.0 false false 3 Master 3.45 false false SubChannel1 Master 0.15 false false Master Master 3.6 false false csound -Wdo devaudio -L stdin false false 2.0 0.0 root -10066279 0 true 24 0 true 1.0 0 5 11.0 0.0 2h12TET-0 -13487616 2 from ScriptingUtils import * from math import * scoreText = '' notetime = 0 notestart = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] notestore = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] dur = [[1,1,13,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] durstore = [[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] fq = [[14.0,7.0,1.0,7.0,10.0],[2.0,11.0,2.0,11.0,9.0],[3.0,3.0,8.0,13.0,3.0],[4.0,4.0,12.0,4.0,4.0],[6.0,5.0,5.0,9.0,5.0]] fqstore = [[14.0,7.0,1.0,7.0,10.0],[2.0,11.0,2.0,11.0,9.0],[3.0,3.0,8.0,13.0,3.0],[4.0,4.0,12.0,4.0,4.0],[6.0,5.0,5.0,9.0,5.0]] amp = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] ampstore = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] phs = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] phsstore = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] pan = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] panstore = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] while notetime < blueDuration-2 : notetime = notetime + 1 for a in range(len(notestart)) : for b in range(len(notestart[a])) : if notestart[a][b]==1 : freq = pow(2.0,(fq[a][b]/12.0)) scoreText += "i1 "+str(notetime)+" "+str(dur[a][b])+" "+str(freq*100.0)+" "+str(-1*amp[a][b])+" "+str(.1*phs[a][b])+" "+str((.2*pan[a][b])-1)+" \n" for a in range(len(notestart)) : for b in range(len(notestart[a])) : if a == 0 : n = notestart[4][b] s = notestart[1][b] dur_n = dur[4][b] dur_s = dur[1][b] fq_n = fq[4][b] fq_s = fq[1][b] amp_n = amp[4][b] amp_s = amp[1][b] phs_n = phs[4][b] phs_s = phs[1][b] pan_n = pan[4][b] pan_s = pan[1][b] if b == 4 : ne = notestart[4][0] e = notestart[0][0] se = notestart[1][0] dur_ne = dur[4][0] dur_e = dur[0][0] dur_se = dur[1][0] fq_ne = fq[4][0] fq_e = fq[0][0] fq_se = fq[1][0] amp_ne = amp[4][0] amp_e = amp[0][0] amp_se = amp[1][0] phs_ne = phs[4][0] phs_e = phs[0][0] phs_se = phs[1][0] pan_ne = pan[4][0] pan_e = pan[0][0] pan_se = pan[1][0] else : ne = notestart[4][b+1] e = notestart[0][b+1] se = notestart[1][b+1] dur_ne = dur[4][b+1] dur_e = dur[0][b+1] dur_se = dur[1][b+1] fq_ne = fq[4][b+1] fq_e = fq[0][b+1] fq_se = fq[1][b+1] amp_ne = amp[4][b+1] amp_e = amp[0][b+1] amp_se = amp[1][b+1] phs_ne = phs[4][b+1] phs_e = phs[0][b+1] phs_se = phs[1][b+1] pan_ne = pan[4][b+1] pan_e = pan[0][b+1] pan_se = pan[1][b+1] if b == 0 : nw = notestart[4][4] w = notestart[0][4] sw = notestart[1][4] dur_nw = dur[4][4] dur_w = dur[0][4] dur_sw = dur[1][4] fq_nw = fq[4][4] fq_w = fq[0][4] fq_sw = fq[1][4] amp_nw = amp[4][4] amp_w = amp[0][4] amp_sw = amp[1][4] phs_nw = phs[4][4] phs_w = phs[0][4] phs_sw = phs[1][4] pan_nw = pan[4][4] pan_w = pan[0][4] pan_sw = pan[1][4] else : nw = notestart[4][b-1] w = notestart[0][b-1] sw = notestart[1][b-1] dur_nw = dur[4][b-1] dur_w = dur[0][b-1] dur_sw = dur[1][b-1] fq_nw = fq[4][b-1] fq_w = fq[0][b-1] fq_sw = fq[1][b-1] amp_nw = amp[4][b-1] amp_w = amp[0][b-1] amp_sw = amp[1][b-1] phs_nw = phs[4][b-1] phs_w = phs[0][b-1] phs_sw = phs[1][b-1] pan_nw = pan[4][b-1] pan_w = pan[0][b-1] pan_sw = pan[1][b-1] else : n = notestart[a-1][b] dur_n = dur[a-1][b] fq_n = fq[a-1][b] amp_n = amp[a-1][b] phs_n = phs[a-1][b] pan_n = pan[a-1][b] if a == 4 : s = notestart[0][b] dur_s = dur[0][b] fq_s = fq[0][b] amp_s = amp[0][b] phs_s = phs[0][b] pan_s = pan[0][b] if b == 0 : sw = notestart[0][4] se = notestart[0][1] dur_sw = dur[0][4] dur_se = dur[0][1] fq_sw = fq[0][4] fq_se = fq[0][1] amp_sw = amp[0][4] amp_se = amp[0][1] phs_sw = phs[0][4] phs_se = phs[0][1] pan_sw = pan[0][4] pan_se = pan[0][1] else : sw = notestart[0][b-1] dur_sw = dur[0][b-1] fq_sw = fq[0][b-1] amp_sw = amp[0][b-1] phs_sw = phs[0][b-1] pan_sw = pan[0][b-1] if b == 4 : se = notestart[0][0] dur_se = dur[0][0] fq_se = fq[0][0] amp_se = amp[0][0] phs_se = phs[0][0] pan_se = pan[0][0] else : se = notestart[0][b+1] dur_se = dur[0][b+1] fq_se = fq[0][b+1] amp_se = amp[0][b+1] phs_se = phs[0][b+1] pan_se = pan[0][b+1] else : s = notestart[a+1][b] dur_s = dur[a+1][b] fq_s = fq[a+1][b] amp_s = amp[a+1][b] phs_s = phs[a+1][b] pan_s = pan[a+1][b] if b == 0 : sw = notestart[a+1][4] se = notestart[a+1][0] dur_sw = dur[a+1][4] dur_se = dur[a+1][0] fq_sw = fq[a+1][4] fq_se = fq[a+1][0] amp_sw = amp[a+1][4] amp_se = amp[a+1][0] phs_sw = phs[a+1][4] phs_se = phs[a+1][0] pan_sw = pan[a+1][4] pan_se = pan[a+1][0] else : sw = notestart[a+1][b-1] dur_sw = dur[a+1][b-1] fq_sw = fq[a+1][b-1] amp_sw = amp[a+1][b-1] phs_sw = phs[a+1][b-1] pan_sw = pan[a+1][b-1] if b == 4 : se = notestart[a+1][0] dur_se = dur[a+1][0] fq_se = fq[a+1][0] amp_se = amp[a+1][0] phs_se = phs[a+1][0] pan_se = pan[a+1][0] else : se = notestart[a+1][b+1] dur_se = dur[a+1][b+1] fq_se = fq[a+1][b+1] amp_se = amp[a+1][b+1] phs_se = phs[a+1][b+1] pan_se = pan[a+1][b+1] if b == 0 : nw = notestart[a-1][4] w = notestart[a][4] dur_nw = dur[a-1][4] dur_w = dur[a][4] fq_nw = fq[a-1][4] fq_w = fq[a][4] amp_nw = amp[a-1][4] amp_w = amp[a][4] phs_nw = phs[a-1][4] phs_w = phs[a][4] pan_nw = pan[a-1][4] pan_w = pan[a][4] else : nw = notestart[a-1][b-1] w = notestart[a][b-1] dur_nw = dur[a-1][b-1] dur_w = dur[a][b-1] fq_nw = fq[a-1][b-1] fq_w = fq[a][b-1] amp_nw = amp[a-1][b-1] amp_w = amp[a][b-1] phs_nw = phs[a-1][b-1] phs_w = phs[a][b-1] pan_nw = pan[a-1][b-1] pan_w = pan[a][b-1] if b == 4 : ne = notestart[a-1][0] e = notestart[a][0] dur_ne = dur[a-1][0] dur_e = dur[a][0] fq_ne = fq[a-1][0] fq_e = fq[a][0] amp_ne = amp[a-1][0] amp_e = amp[a][0] phs_ne = phs[a-1][0] phs_e = phs[a][0] pan_ne = pan[a-1][0] pan_e = pan[a][0] else : ne = notestart[a-1][b+1] e = notestart[a][b+1] dur_ne = dur[a-1][b+1] dur_e = dur[a][b+1] fq_ne = fq[a-1][b+1] fq_e = fq[a][b+1] amp_ne = amp[a-1][b+1] amp_e = amp[a][b+1] phs_ne = phs[a-1][b+1] phs_e = phs[a][b+1] pan_ne = pan[a-1][b+1] pan_e = pan[a][b+1] notestore[a][b] = notestart[a][b]*n*ne*e*se*s*sw*w*nw durt = (dur[a][b]+dur_n+dur_ne+dur_e+dur_se+dur_s+dur_sw+dur_w+dur_nw)*.3 if durt > 16 : durt = durt*.33 durstore[a][b] = durt fqt = (fq[a][b]+fq_n+fq_ne+fq_e+fq_se+fq_s+fq_sw+fq_w+fq_nw)*.3 if fqt > 24 : fqt = fqt%3.0 fqt = int(fqt) fqstore[a][b] = fqt ampt = (amp[a][b]+amp_n+amp_ne+amp_e+amp_se+amp_s+amp_sw+amp_w+amp_nw)*.12 if ampt > 40 : ampt = ampt-10 if ampt < 20 : ampt = ampt+10 ampstore[a][b] = ampt phst = (phs[a][b]+phs_n+phs_ne+phs_e+phs_se+phs_s+phs_sw+phs_w+phs_nw)*.3 if phst > 10 : phst = phst*.1 phsstore[a][b] = phst pant = (pan[a][b]+pan_n+pan_ne+pan_e+pan_se+pan_s+pan_sw+pan_w+pan_nw)*.3 if pant > 10 : pant = pant*.1 panstore[a][b] = pant dur = durstore notestart = notestore fq = fqstore amp = ampstore phs = phsstore pan = panstore score = scoreText 11.0 11.0 2h11TET-0 -16764366 2 from ScriptingUtils import * from math import * scoreText = '' notetime = 0 notestart = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] notestore = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] dur = [[1,1,13,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] durstore = [[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] fq = [[14.0,7.0,1.0,7.0,10.0],[2.0,11.0,2.0,11.0,9.0],[3.0,3.0,8.0,13.0,3.0],[4.0,4.0,12.0,4.0,4.0],[6.0,5.0,5.0,9.0,5.0]] fqstore = [[14.0,7.0,1.0,7.0,10.0],[2.0,11.0,2.0,11.0,9.0],[3.0,3.0,8.0,13.0,3.0],[4.0,4.0,12.0,4.0,4.0],[6.0,5.0,5.0,9.0,5.0]] amp = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] ampstore = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] phs = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] phsstore = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] pan = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] panstore = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] while notetime < blueDuration-2 : notetime = notetime + 1 for a in range(len(notestart)) : for b in range(len(notestart[a])) : if notestart[a][b]==1 : freq = pow(2.0,(fq[a][b]/11.0)) scoreText += "i1 "+str(notetime)+" "+str(dur[a][b])+" "+str(freq*100.0)+" "+str(-1*amp[a][b])+" "+str(.1*phs[a][b])+" "+str((.2*pan[a][b])-1)+" \n" for a in range(len(notestart)) : for b in range(len(notestart[a])) : if a == 0 : n = notestart[4][b] s = notestart[1][b] dur_n = dur[4][b] dur_s = dur[1][b] fq_n = fq[4][b] fq_s = fq[1][b] amp_n = amp[4][b] amp_s = amp[1][b] phs_n = phs[4][b] phs_s = phs[1][b] pan_n = pan[4][b] pan_s = pan[1][b] if b == 4 : ne = notestart[4][0] e = notestart[0][0] se = notestart[1][0] dur_ne = dur[4][0] dur_e = dur[0][0] dur_se = dur[1][0] fq_ne = fq[4][0] fq_e = fq[0][0] fq_se = fq[1][0] amp_ne = amp[4][0] amp_e = amp[0][0] amp_se = amp[1][0] phs_ne = phs[4][0] phs_e = phs[0][0] phs_se = phs[1][0] pan_ne = pan[4][0] pan_e = pan[0][0] pan_se = pan[1][0] else : ne = notestart[4][b+1] e = notestart[0][b+1] se = notestart[1][b+1] dur_ne = dur[4][b+1] dur_e = dur[0][b+1] dur_se = dur[1][b+1] fq_ne = fq[4][b+1] fq_e = fq[0][b+1] fq_se = fq[1][b+1] amp_ne = amp[4][b+1] amp_e = amp[0][b+1] amp_se = amp[1][b+1] phs_ne = phs[4][b+1] phs_e = phs[0][b+1] phs_se = phs[1][b+1] pan_ne = pan[4][b+1] pan_e = pan[0][b+1] pan_se = pan[1][b+1] if b == 0 : nw = notestart[4][4] w = notestart[0][4] sw = notestart[1][4] dur_nw = dur[4][4] dur_w = dur[0][4] dur_sw = dur[1][4] fq_nw = fq[4][4] fq_w = fq[0][4] fq_sw = fq[1][4] amp_nw = amp[4][4] amp_w = amp[0][4] amp_sw = amp[1][4] phs_nw = phs[4][4] phs_w = phs[0][4] phs_sw = phs[1][4] pan_nw = pan[4][4] pan_w = pan[0][4] pan_sw = pan[1][4] else : nw = notestart[4][b-1] w = notestart[0][b-1] sw = notestart[1][b-1] dur_nw = dur[4][b-1] dur_w = dur[0][b-1] dur_sw = dur[1][b-1] fq_nw = fq[4][b-1] fq_w = fq[0][b-1] fq_sw = fq[1][b-1] amp_nw = amp[4][b-1] amp_w = amp[0][b-1] amp_sw = amp[1][b-1] phs_nw = phs[4][b-1] phs_w = phs[0][b-1] phs_sw = phs[1][b-1] pan_nw = pan[4][b-1] pan_w = pan[0][b-1] pan_sw = pan[1][b-1] else : n = notestart[a-1][b] dur_n = dur[a-1][b] fq_n = fq[a-1][b] amp_n = amp[a-1][b] phs_n = phs[a-1][b] pan_n = pan[a-1][b] if a == 4 : s = notestart[0][b] dur_s = dur[0][b] fq_s = fq[0][b] amp_s = amp[0][b] phs_s = phs[0][b] pan_s = pan[0][b] if b == 0 : sw = notestart[0][4] se = notestart[0][1] dur_sw = dur[0][4] dur_se = dur[0][1] fq_sw = fq[0][4] fq_se = fq[0][1] amp_sw = amp[0][4] amp_se = amp[0][1] phs_sw = phs[0][4] phs_se = phs[0][1] pan_sw = pan[0][4] pan_se = pan[0][1] else : sw = notestart[0][b-1] dur_sw = dur[0][b-1] fq_sw = fq[0][b-1] amp_sw = amp[0][b-1] phs_sw = phs[0][b-1] pan_sw = pan[0][b-1] if b == 4 : se = notestart[0][0] dur_se = dur[0][0] fq_se = fq[0][0] amp_se = amp[0][0] phs_se = phs[0][0] pan_se = pan[0][0] else : se = notestart[0][b+1] dur_se = dur[0][b+1] fq_se = fq[0][b+1] amp_se = amp[0][b+1] phs_se = phs[0][b+1] pan_se = pan[0][b+1] else : s = notestart[a+1][b] dur_s = dur[a+1][b] fq_s = fq[a+1][b] amp_s = amp[a+1][b] phs_s = phs[a+1][b] pan_s = pan[a+1][b] if b == 0 : sw = notestart[a+1][4] se = notestart[a+1][0] dur_sw = dur[a+1][4] dur_se = dur[a+1][0] fq_sw = fq[a+1][4] fq_se = fq[a+1][0] amp_sw = amp[a+1][4] amp_se = amp[a+1][0] phs_sw = phs[a+1][4] phs_se = phs[a+1][0] pan_sw = pan[a+1][4] pan_se = pan[a+1][0] else : sw = notestart[a+1][b-1] dur_sw = dur[a+1][b-1] fq_sw = fq[a+1][b-1] amp_sw = amp[a+1][b-1] phs_sw = phs[a+1][b-1] pan_sw = pan[a+1][b-1] if b == 4 : se = notestart[a+1][0] dur_se = dur[a+1][0] fq_se = fq[a+1][0] amp_se = amp[a+1][0] phs_se = phs[a+1][0] pan_se = pan[a+1][0] else : se = notestart[a+1][b+1] dur_se = dur[a+1][b+1] fq_se = fq[a+1][b+1] amp_se = amp[a+1][b+1] phs_se = phs[a+1][b+1] pan_se = pan[a+1][b+1] if b == 0 : nw = notestart[a-1][4] w = notestart[a][4] dur_nw = dur[a-1][4] dur_w = dur[a][4] fq_nw = fq[a-1][4] fq_w = fq[a][4] amp_nw = amp[a-1][4] amp_w = amp[a][4] phs_nw = phs[a-1][4] phs_w = phs[a][4] pan_nw = pan[a-1][4] pan_w = pan[a][4] else : nw = notestart[a-1][b-1] w = notestart[a][b-1] dur_nw = dur[a-1][b-1] dur_w = dur[a][b-1] fq_nw = fq[a-1][b-1] fq_w = fq[a][b-1] amp_nw = amp[a-1][b-1] amp_w = amp[a][b-1] phs_nw = phs[a-1][b-1] phs_w = phs[a][b-1] pan_nw = pan[a-1][b-1] pan_w = pan[a][b-1] if b == 4 : ne = notestart[a-1][0] e = notestart[a][0] dur_ne = dur[a-1][0] dur_e = dur[a][0] fq_ne = fq[a-1][0] fq_e = fq[a][0] amp_ne = amp[a-1][0] amp_e = amp[a][0] phs_ne = phs[a-1][0] phs_e = phs[a][0] pan_ne = pan[a-1][0] pan_e = pan[a][0] else : ne = notestart[a-1][b+1] e = notestart[a][b+1] dur_ne = dur[a-1][b+1] dur_e = dur[a][b+1] fq_ne = fq[a-1][b+1] fq_e = fq[a][b+1] amp_ne = amp[a-1][b+1] amp_e = amp[a][b+1] phs_ne = phs[a-1][b+1] phs_e = phs[a][b+1] pan_ne = pan[a-1][b+1] pan_e = pan[a][b+1] notestore[a][b] = notestart[a][b]*n*ne*e*se*s*sw*w*nw durt = (dur[a][b]+dur_n+dur_ne+dur_e+dur_se+dur_s+dur_sw+dur_w+dur_nw)*.3 if durt > 16 : durt = durt*.33 durstore[a][b] = durt fqt = (fq[a][b]+fq_n+fq_ne+fq_e+fq_se+fq_s+fq_sw+fq_w+fq_nw)*.3 if fqt > 24 : fqt = fqt%3.0 fqt = int(fqt) fqstore[a][b] = fqt ampt = (amp[a][b]+amp_n+amp_ne+amp_e+amp_se+amp_s+amp_sw+amp_w+amp_nw)*.12 if ampt > 40 : ampt = ampt-10 if ampt < 20 : ampt = ampt+10 ampstore[a][b] = ampt phst = (phs[a][b]+phs_n+phs_ne+phs_e+phs_se+phs_s+phs_sw+phs_w+phs_nw)*.3 if phst > 10 : phst = phst*.1 phsstore[a][b] = phst pant = (pan[a][b]+pan_n+pan_ne+pan_e+pan_se+pan_s+pan_sw+pan_w+pan_nw)*.3 if pant > 10 : pant = pant*.1 panstore[a][b] = pant dur = durstore notestart = notestore fq = fqstore amp = ampstore phs = phsstore pan = panstore score = scoreText 11.0 33.0 2h12TET-1 -13487616 2 from ScriptingUtils import * from math import * scoreText = '' notetime = 0 notestart = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] notestore = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] dur = [[1,1,13,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] durstore = [[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] fq = [[14.0,7.0,1.0,7.0,10.0],[2.0,11.0,2.0,11.0,4.0],[3.0,3.0,8.0,13.0,3.0],[14.0,9.0,12.0,4.0,4.0],[6.0,5.0,5.0,9.0,5.0]] fqstore = [[14.0,7.0,1.0,7.0,10.0],[2.0,11.0,2.0,11.0,9.0],[3.0,3.0,8.0,13.0,3.0],[4.0,4.0,12.0,4.0,4.0],[6.0,5.0,5.0,9.0,5.0]] amp = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] ampstore = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] phs = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] phsstore = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] pan = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] panstore = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] while notetime < blueDuration-2 : notetime = notetime + 1 for a in range(len(notestart)) : for b in range(len(notestart[a])) : if notestart[a][b]==1 : freq = pow(2.0,(fq[a][b]/12.0)) scoreText += "i1 "+str(notetime)+" "+str(dur[a][b])+" "+str(freq*100.0)+" "+str(-1*amp[a][b])+" "+str(.1*phs[a][b])+" "+str((.2*pan[a][b])-1)+" \n" for a in range(len(notestart)) : for b in range(len(notestart[a])) : if a == 0 : n = notestart[4][b] s = notestart[1][b] dur_n = dur[4][b] dur_s = dur[1][b] fq_n = fq[4][b] fq_s = fq[1][b] amp_n = amp[4][b] amp_s = amp[1][b] phs_n = phs[4][b] phs_s = phs[1][b] pan_n = pan[4][b] pan_s = pan[1][b] if b == 4 : ne = notestart[4][0] e = notestart[0][0] se = notestart[1][0] dur_ne = dur[4][0] dur_e = dur[0][0] dur_se = dur[1][0] fq_ne = fq[4][0] fq_e = fq[0][0] fq_se = fq[1][0] amp_ne = amp[4][0] amp_e = amp[0][0] amp_se = amp[1][0] phs_ne = phs[4][0] phs_e = phs[0][0] phs_se = phs[1][0] pan_ne = pan[4][0] pan_e = pan[0][0] pan_se = pan[1][0] else : ne = notestart[4][b+1] e = notestart[0][b+1] se = notestart[1][b+1] dur_ne = dur[4][b+1] dur_e = dur[0][b+1] dur_se = dur[1][b+1] fq_ne = fq[4][b+1] fq_e = fq[0][b+1] fq_se = fq[1][b+1] amp_ne = amp[4][b+1] amp_e = amp[0][b+1] amp_se = amp[1][b+1] phs_ne = phs[4][b+1] phs_e = phs[0][b+1] phs_se = phs[1][b+1] pan_ne = pan[4][b+1] pan_e = pan[0][b+1] pan_se = pan[1][b+1] if b == 0 : nw = notestart[4][4] w = notestart[0][4] sw = notestart[1][4] dur_nw = dur[4][4] dur_w = dur[0][4] dur_sw = dur[1][4] fq_nw = fq[4][4] fq_w = fq[0][4] fq_sw = fq[1][4] amp_nw = amp[4][4] amp_w = amp[0][4] amp_sw = amp[1][4] phs_nw = phs[4][4] phs_w = phs[0][4] phs_sw = phs[1][4] pan_nw = pan[4][4] pan_w = pan[0][4] pan_sw = pan[1][4] else : nw = notestart[4][b-1] w = notestart[0][b-1] sw = notestart[1][b-1] dur_nw = dur[4][b-1] dur_w = dur[0][b-1] dur_sw = dur[1][b-1] fq_nw = fq[4][b-1] fq_w = fq[0][b-1] fq_sw = fq[1][b-1] amp_nw = amp[4][b-1] amp_w = amp[0][b-1] amp_sw = amp[1][b-1] phs_nw = phs[4][b-1] phs_w = phs[0][b-1] phs_sw = phs[1][b-1] pan_nw = pan[4][b-1] pan_w = pan[0][b-1] pan_sw = pan[1][b-1] else : n = notestart[a-1][b] dur_n = dur[a-1][b] fq_n = fq[a-1][b] amp_n = amp[a-1][b] phs_n = phs[a-1][b] pan_n = pan[a-1][b] if a == 4 : s = notestart[0][b] dur_s = dur[0][b] fq_s = fq[0][b] amp_s = amp[0][b] phs_s = phs[0][b] pan_s = pan[0][b] if b == 0 : sw = notestart[0][4] se = notestart[0][1] dur_sw = dur[0][4] dur_se = dur[0][1] fq_sw = fq[0][4] fq_se = fq[0][1] amp_sw = amp[0][4] amp_se = amp[0][1] phs_sw = phs[0][4] phs_se = phs[0][1] pan_sw = pan[0][4] pan_se = pan[0][1] else : sw = notestart[0][b-1] dur_sw = dur[0][b-1] fq_sw = fq[0][b-1] amp_sw = amp[0][b-1] phs_sw = phs[0][b-1] pan_sw = pan[0][b-1] if b == 4 : se = notestart[0][0] dur_se = dur[0][0] fq_se = fq[0][0] amp_se = amp[0][0] phs_se = phs[0][0] pan_se = pan[0][0] else : se = notestart[0][b+1] dur_se = dur[0][b+1] fq_se = fq[0][b+1] amp_se = amp[0][b+1] phs_se = phs[0][b+1] pan_se = pan[0][b+1] else : s = notestart[a+1][b] dur_s = dur[a+1][b] fq_s = fq[a+1][b] amp_s = amp[a+1][b] phs_s = phs[a+1][b] pan_s = pan[a+1][b] if b == 0 : sw = notestart[a+1][4] se = notestart[a+1][0] dur_sw = dur[a+1][4] dur_se = dur[a+1][0] fq_sw = fq[a+1][4] fq_se = fq[a+1][0] amp_sw = amp[a+1][4] amp_se = amp[a+1][0] phs_sw = phs[a+1][4] phs_se = phs[a+1][0] pan_sw = pan[a+1][4] pan_se = pan[a+1][0] else : sw = notestart[a+1][b-1] dur_sw = dur[a+1][b-1] fq_sw = fq[a+1][b-1] amp_sw = amp[a+1][b-1] phs_sw = phs[a+1][b-1] pan_sw = pan[a+1][b-1] if b == 4 : se = notestart[a+1][0] dur_se = dur[a+1][0] fq_se = fq[a+1][0] amp_se = amp[a+1][0] phs_se = phs[a+1][0] pan_se = pan[a+1][0] else : se = notestart[a+1][b+1] dur_se = dur[a+1][b+1] fq_se = fq[a+1][b+1] amp_se = amp[a+1][b+1] phs_se = phs[a+1][b+1] pan_se = pan[a+1][b+1] if b == 0 : nw = notestart[a-1][4] w = notestart[a][4] dur_nw = dur[a-1][4] dur_w = dur[a][4] fq_nw = fq[a-1][4] fq_w = fq[a][4] amp_nw = amp[a-1][4] amp_w = amp[a][4] phs_nw = phs[a-1][4] phs_w = phs[a][4] pan_nw = pan[a-1][4] pan_w = pan[a][4] else : nw = notestart[a-1][b-1] w = notestart[a][b-1] dur_nw = dur[a-1][b-1] dur_w = dur[a][b-1] fq_nw = fq[a-1][b-1] fq_w = fq[a][b-1] amp_nw = amp[a-1][b-1] amp_w = amp[a][b-1] phs_nw = phs[a-1][b-1] phs_w = phs[a][b-1] pan_nw = pan[a-1][b-1] pan_w = pan[a][b-1] if b == 4 : ne = notestart[a-1][0] e = notestart[a][0] dur_ne = dur[a-1][0] dur_e = dur[a][0] fq_ne = fq[a-1][0] fq_e = fq[a][0] amp_ne = amp[a-1][0] amp_e = amp[a][0] phs_ne = phs[a-1][0] phs_e = phs[a][0] pan_ne = pan[a-1][0] pan_e = pan[a][0] else : ne = notestart[a-1][b+1] e = notestart[a][b+1] dur_ne = dur[a-1][b+1] dur_e = dur[a][b+1] fq_ne = fq[a-1][b+1] fq_e = fq[a][b+1] amp_ne = amp[a-1][b+1] amp_e = amp[a][b+1] phs_ne = phs[a-1][b+1] phs_e = phs[a][b+1] pan_ne = pan[a-1][b+1] pan_e = pan[a][b+1] notestore[a][b] = notestart[a][b]*n*ne*e*se*s*sw*w*nw durt = (dur[a][b]+dur_n+dur_ne+dur_e+dur_se+dur_s+dur_sw+dur_w+dur_nw)*.3 if durt > 16 : durt = durt*.33 durstore[a][b] = durt fqt = (fq[a][b]+fq_n+fq_ne+fq_e+fq_se+fq_s+fq_sw+fq_w+fq_nw)*.3 if fqt > 24 : fqt = fqt%3.0 fqt = int(fqt) fqstore[a][b] = fqt ampt = (amp[a][b]+amp_n+amp_ne+amp_e+amp_se+amp_s+amp_sw+amp_w+amp_nw)*.12 if ampt > 40 : ampt = ampt-10 if ampt < 20 : ampt = ampt+10 ampstore[a][b] = ampt phst = (phs[a][b]+phs_n+phs_ne+phs_e+phs_se+phs_s+phs_sw+phs_w+phs_nw)*.3 if phst > 10 : phst = phst*.1 phsstore[a][b] = phst pant = (pan[a][b]+pan_n+pan_ne+pan_e+pan_se+pan_s+pan_sw+pan_w+pan_nw)*.3 if pant > 10 : pant = pant*.1 panstore[a][b] = pant dur = durstore notestart = notestore fq = fqstore amp = ampstore phs = phsstore pan = panstore score = scoreText 11.0 44.0 2h11TET-1 -16764366 2 from ScriptingUtils import * from math import * scoreText = '' notetime = 0 notestart = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] notestore = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] dur = [[1,1,13,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] durstore = [[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] fq = [[14.0,7.0,1.0,7.0,10.0],[2.0,11.0,2.0,11.0,9.0],[3.0,3.0,8.0,13.0,3.0],[4.0,4.0,12.0,4.0,4.0],[6.0,5.0,5.0,9.0,5.0]] fqstore = [[14.0,7.0,1.0,7.0,10.0],[2.0,11.0,5.0,11.0,9.0],[13.0,3.0,8.0,13.0,3.0],[4.0,4.0,12.0,4.0,4.0],[6.0,5.0,5.0,9.0,5.0]] amp = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] ampstore = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] phs = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] phsstore = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] pan = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] panstore = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] while notetime < blueDuration-2 : notetime = notetime + 1 for a in range(len(notestart)) : for b in range(len(notestart[a])) : if notestart[a][b]==1 : freq = pow(2.0,(fq[a][b]/11.0)) scoreText += "i1 "+str(notetime)+" "+str(dur[a][b])+" "+str(freq*100.0)+" "+str(-1*amp[a][b])+" "+str(.1*phs[a][b])+" "+str((.2*pan[a][b])-1)+" \n" for a in range(len(notestart)) : for b in range(len(notestart[a])) : if a == 0 : n = notestart[4][b] s = notestart[1][b] dur_n = dur[4][b] dur_s = dur[1][b] fq_n = fq[4][b] fq_s = fq[1][b] amp_n = amp[4][b] amp_s = amp[1][b] phs_n = phs[4][b] phs_s = phs[1][b] pan_n = pan[4][b] pan_s = pan[1][b] if b == 4 : ne = notestart[4][0] e = notestart[0][0] se = notestart[1][0] dur_ne = dur[4][0] dur_e = dur[0][0] dur_se = dur[1][0] fq_ne = fq[4][0] fq_e = fq[0][0] fq_se = fq[1][0] amp_ne = amp[4][0] amp_e = amp[0][0] amp_se = amp[1][0] phs_ne = phs[4][0] phs_e = phs[0][0] phs_se = phs[1][0] pan_ne = pan[4][0] pan_e = pan[0][0] pan_se = pan[1][0] else : ne = notestart[4][b+1] e = notestart[0][b+1] se = notestart[1][b+1] dur_ne = dur[4][b+1] dur_e = dur[0][b+1] dur_se = dur[1][b+1] fq_ne = fq[4][b+1] fq_e = fq[0][b+1] fq_se = fq[1][b+1] amp_ne = amp[4][b+1] amp_e = amp[0][b+1] amp_se = amp[1][b+1] phs_ne = phs[4][b+1] phs_e = phs[0][b+1] phs_se = phs[1][b+1] pan_ne = pan[4][b+1] pan_e = pan[0][b+1] pan_se = pan[1][b+1] if b == 0 : nw = notestart[4][4] w = notestart[0][4] sw = notestart[1][4] dur_nw = dur[4][4] dur_w = dur[0][4] dur_sw = dur[1][4] fq_nw = fq[4][4] fq_w = fq[0][4] fq_sw = fq[1][4] amp_nw = amp[4][4] amp_w = amp[0][4] amp_sw = amp[1][4] phs_nw = phs[4][4] phs_w = phs[0][4] phs_sw = phs[1][4] pan_nw = pan[4][4] pan_w = pan[0][4] pan_sw = pan[1][4] else : nw = notestart[4][b-1] w = notestart[0][b-1] sw = notestart[1][b-1] dur_nw = dur[4][b-1] dur_w = dur[0][b-1] dur_sw = dur[1][b-1] fq_nw = fq[4][b-1] fq_w = fq[0][b-1] fq_sw = fq[1][b-1] amp_nw = amp[4][b-1] amp_w = amp[0][b-1] amp_sw = amp[1][b-1] phs_nw = phs[4][b-1] phs_w = phs[0][b-1] phs_sw = phs[1][b-1] pan_nw = pan[4][b-1] pan_w = pan[0][b-1] pan_sw = pan[1][b-1] else : n = notestart[a-1][b] dur_n = dur[a-1][b] fq_n = fq[a-1][b] amp_n = amp[a-1][b] phs_n = phs[a-1][b] pan_n = pan[a-1][b] if a == 4 : s = notestart[0][b] dur_s = dur[0][b] fq_s = fq[0][b] amp_s = amp[0][b] phs_s = phs[0][b] pan_s = pan[0][b] if b == 0 : sw = notestart[0][4] se = notestart[0][1] dur_sw = dur[0][4] dur_se = dur[0][1] fq_sw = fq[0][4] fq_se = fq[0][1] amp_sw = amp[0][4] amp_se = amp[0][1] phs_sw = phs[0][4] phs_se = phs[0][1] pan_sw = pan[0][4] pan_se = pan[0][1] else : sw = notestart[0][b-1] dur_sw = dur[0][b-1] fq_sw = fq[0][b-1] amp_sw = amp[0][b-1] phs_sw = phs[0][b-1] pan_sw = pan[0][b-1] if b == 4 : se = notestart[0][0] dur_se = dur[0][0] fq_se = fq[0][0] amp_se = amp[0][0] phs_se = phs[0][0] pan_se = pan[0][0] else : se = notestart[0][b+1] dur_se = dur[0][b+1] fq_se = fq[0][b+1] amp_se = amp[0][b+1] phs_se = phs[0][b+1] pan_se = pan[0][b+1] else : s = notestart[a+1][b] dur_s = dur[a+1][b] fq_s = fq[a+1][b] amp_s = amp[a+1][b] phs_s = phs[a+1][b] pan_s = pan[a+1][b] if b == 0 : sw = notestart[a+1][4] se = notestart[a+1][0] dur_sw = dur[a+1][4] dur_se = dur[a+1][0] fq_sw = fq[a+1][4] fq_se = fq[a+1][0] amp_sw = amp[a+1][4] amp_se = amp[a+1][0] phs_sw = phs[a+1][4] phs_se = phs[a+1][0] pan_sw = pan[a+1][4] pan_se = pan[a+1][0] else : sw = notestart[a+1][b-1] dur_sw = dur[a+1][b-1] fq_sw = fq[a+1][b-1] amp_sw = amp[a+1][b-1] phs_sw = phs[a+1][b-1] pan_sw = pan[a+1][b-1] if b == 4 : se = notestart[a+1][0] dur_se = dur[a+1][0] fq_se = fq[a+1][0] amp_se = amp[a+1][0] phs_se = phs[a+1][0] pan_se = pan[a+1][0] else : se = notestart[a+1][b+1] dur_se = dur[a+1][b+1] fq_se = fq[a+1][b+1] amp_se = amp[a+1][b+1] phs_se = phs[a+1][b+1] pan_se = pan[a+1][b+1] if b == 0 : nw = notestart[a-1][4] w = notestart[a][4] dur_nw = dur[a-1][4] dur_w = dur[a][4] fq_nw = fq[a-1][4] fq_w = fq[a][4] amp_nw = amp[a-1][4] amp_w = amp[a][4] phs_nw = phs[a-1][4] phs_w = phs[a][4] pan_nw = pan[a-1][4] pan_w = pan[a][4] else : nw = notestart[a-1][b-1] w = notestart[a][b-1] dur_nw = dur[a-1][b-1] dur_w = dur[a][b-1] fq_nw = fq[a-1][b-1] fq_w = fq[a][b-1] amp_nw = amp[a-1][b-1] amp_w = amp[a][b-1] phs_nw = phs[a-1][b-1] phs_w = phs[a][b-1] pan_nw = pan[a-1][b-1] pan_w = pan[a][b-1] if b == 4 : ne = notestart[a-1][0] e = notestart[a][0] dur_ne = dur[a-1][0] dur_e = dur[a][0] fq_ne = fq[a-1][0] fq_e = fq[a][0] amp_ne = amp[a-1][0] amp_e = amp[a][0] phs_ne = phs[a-1][0] phs_e = phs[a][0] pan_ne = pan[a-1][0] pan_e = pan[a][0] else : ne = notestart[a-1][b+1] e = notestart[a][b+1] dur_ne = dur[a-1][b+1] dur_e = dur[a][b+1] fq_ne = fq[a-1][b+1] fq_e = fq[a][b+1] amp_ne = amp[a-1][b+1] amp_e = amp[a][b+1] phs_ne = phs[a-1][b+1] phs_e = phs[a][b+1] pan_ne = pan[a-1][b+1] pan_e = pan[a][b+1] notestore[a][b] = notestart[a][b]*n*ne*e*se*s*sw*w*nw durt = (dur[a][b]+dur_n+dur_ne+dur_e+dur_se+dur_s+dur_sw+dur_w+dur_nw)*.3 if durt > 16 : durt = durt*.33 durstore[a][b] = durt fqt = (fq[a][b]+fq_n+fq_ne+fq_e+fq_se+fq_s+fq_sw+fq_w+fq_nw)*.3 if fqt > 24 : fqt = fqt%3.0 fqt = int(fqt) fqstore[a][b] = fqt ampt = (amp[a][b]+amp_n+amp_ne+amp_e+amp_se+amp_s+amp_sw+amp_w+amp_nw)*.12 if ampt > 40 : ampt = ampt-10 if ampt < 20 : ampt = ampt+10 ampstore[a][b] = ampt phst = (phs[a][b]+phs_n+phs_ne+phs_e+phs_se+phs_s+phs_sw+phs_w+phs_nw)*.3 if phst > 10 : phst = phst*.1 phsstore[a][b] = phst pant = (pan[a][b]+pan_n+pan_ne+pan_e+pan_se+pan_s+pan_sw+pan_w+pan_nw)*.3 if pant > 10 : pant = pant*.1 panstore[a][b] = pant dur = durstore notestart = notestore fq = fqstore amp = ampstore phs = phsstore pan = panstore score = scoreText 11.0 66.0 2h12TET-2 -13487616 2 from ScriptingUtils import * from math import * scoreText = '' notetime = 0 notestart = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] notestore = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] dur = [[1,1,13,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] durstore = [[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] fq = [[14.0,7.0,1.0,7.0,10.0],[9.0,11.0,2.0,11.0,4.0],[3.0,3.0,8.0,13.0,3.0],[14.0,19.0,12.0,4.0,4.0],[6.0,14.0,5.0,9.0,5.0]] fqstore = [[14.0,7.0,1.0,7.0,10.0],[2.0,11.0,2.0,11.0,9.0],[3.0,3.0,8.0,13.0,3.0],[4.0,4.0,12.0,4.0,4.0],[6.0,5.0,5.0,9.0,5.0]] amp = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] ampstore = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] phs = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] phsstore = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] pan = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] panstore = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] while notetime < blueDuration-2 : notetime = notetime + 1 for a in range(len(notestart)) : for b in range(len(notestart[a])) : if notestart[a][b]==1 : freq = pow(2.0,(fq[a][b]/12.0)) scoreText += "i1 "+str(notetime)+" "+str(dur[a][b])+" "+str(freq*100.0)+" "+str(-1*amp[a][b])+" "+str(.1*phs[a][b])+" "+str((.2*pan[a][b])-1)+" \n" for a in range(len(notestart)) : for b in range(len(notestart[a])) : if a == 0 : n = notestart[4][b] s = notestart[1][b] dur_n = dur[4][b] dur_s = dur[1][b] fq_n = fq[4][b] fq_s = fq[1][b] amp_n = amp[4][b] amp_s = amp[1][b] phs_n = phs[4][b] phs_s = phs[1][b] pan_n = pan[4][b] pan_s = pan[1][b] if b == 4 : ne = notestart[4][0] e = notestart[0][0] se = notestart[1][0] dur_ne = dur[4][0] dur_e = dur[0][0] dur_se = dur[1][0] fq_ne = fq[4][0] fq_e = fq[0][0] fq_se = fq[1][0] amp_ne = amp[4][0] amp_e = amp[0][0] amp_se = amp[1][0] phs_ne = phs[4][0] phs_e = phs[0][0] phs_se = phs[1][0] pan_ne = pan[4][0] pan_e = pan[0][0] pan_se = pan[1][0] else : ne = notestart[4][b+1] e = notestart[0][b+1] se = notestart[1][b+1] dur_ne = dur[4][b+1] dur_e = dur[0][b+1] dur_se = dur[1][b+1] fq_ne = fq[4][b+1] fq_e = fq[0][b+1] fq_se = fq[1][b+1] amp_ne = amp[4][b+1] amp_e = amp[0][b+1] amp_se = amp[1][b+1] phs_ne = phs[4][b+1] phs_e = phs[0][b+1] phs_se = phs[1][b+1] pan_ne = pan[4][b+1] pan_e = pan[0][b+1] pan_se = pan[1][b+1] if b == 0 : nw = notestart[4][4] w = notestart[0][4] sw = notestart[1][4] dur_nw = dur[4][4] dur_w = dur[0][4] dur_sw = dur[1][4] fq_nw = fq[4][4] fq_w = fq[0][4] fq_sw = fq[1][4] amp_nw = amp[4][4] amp_w = amp[0][4] amp_sw = amp[1][4] phs_nw = phs[4][4] phs_w = phs[0][4] phs_sw = phs[1][4] pan_nw = pan[4][4] pan_w = pan[0][4] pan_sw = pan[1][4] else : nw = notestart[4][b-1] w = notestart[0][b-1] sw = notestart[1][b-1] dur_nw = dur[4][b-1] dur_w = dur[0][b-1] dur_sw = dur[1][b-1] fq_nw = fq[4][b-1] fq_w = fq[0][b-1] fq_sw = fq[1][b-1] amp_nw = amp[4][b-1] amp_w = amp[0][b-1] amp_sw = amp[1][b-1] phs_nw = phs[4][b-1] phs_w = phs[0][b-1] phs_sw = phs[1][b-1] pan_nw = pan[4][b-1] pan_w = pan[0][b-1] pan_sw = pan[1][b-1] else : n = notestart[a-1][b] dur_n = dur[a-1][b] fq_n = fq[a-1][b] amp_n = amp[a-1][b] phs_n = phs[a-1][b] pan_n = pan[a-1][b] if a == 4 : s = notestart[0][b] dur_s = dur[0][b] fq_s = fq[0][b] amp_s = amp[0][b] phs_s = phs[0][b] pan_s = pan[0][b] if b == 0 : sw = notestart[0][4] se = notestart[0][1] dur_sw = dur[0][4] dur_se = dur[0][1] fq_sw = fq[0][4] fq_se = fq[0][1] amp_sw = amp[0][4] amp_se = amp[0][1] phs_sw = phs[0][4] phs_se = phs[0][1] pan_sw = pan[0][4] pan_se = pan[0][1] else : sw = notestart[0][b-1] dur_sw = dur[0][b-1] fq_sw = fq[0][b-1] amp_sw = amp[0][b-1] phs_sw = phs[0][b-1] pan_sw = pan[0][b-1] if b == 4 : se = notestart[0][0] dur_se = dur[0][0] fq_se = fq[0][0] amp_se = amp[0][0] phs_se = phs[0][0] pan_se = pan[0][0] else : se = notestart[0][b+1] dur_se = dur[0][b+1] fq_se = fq[0][b+1] amp_se = amp[0][b+1] phs_se = phs[0][b+1] pan_se = pan[0][b+1] else : s = notestart[a+1][b] dur_s = dur[a+1][b] fq_s = fq[a+1][b] amp_s = amp[a+1][b] phs_s = phs[a+1][b] pan_s = pan[a+1][b] if b == 0 : sw = notestart[a+1][4] se = notestart[a+1][0] dur_sw = dur[a+1][4] dur_se = dur[a+1][0] fq_sw = fq[a+1][4] fq_se = fq[a+1][0] amp_sw = amp[a+1][4] amp_se = amp[a+1][0] phs_sw = phs[a+1][4] phs_se = phs[a+1][0] pan_sw = pan[a+1][4] pan_se = pan[a+1][0] else : sw = notestart[a+1][b-1] dur_sw = dur[a+1][b-1] fq_sw = fq[a+1][b-1] amp_sw = amp[a+1][b-1] phs_sw = phs[a+1][b-1] pan_sw = pan[a+1][b-1] if b == 4 : se = notestart[a+1][0] dur_se = dur[a+1][0] fq_se = fq[a+1][0] amp_se = amp[a+1][0] phs_se = phs[a+1][0] pan_se = pan[a+1][0] else : se = notestart[a+1][b+1] dur_se = dur[a+1][b+1] fq_se = fq[a+1][b+1] amp_se = amp[a+1][b+1] phs_se = phs[a+1][b+1] pan_se = pan[a+1][b+1] if b == 0 : nw = notestart[a-1][4] w = notestart[a][4] dur_nw = dur[a-1][4] dur_w = dur[a][4] fq_nw = fq[a-1][4] fq_w = fq[a][4] amp_nw = amp[a-1][4] amp_w = amp[a][4] phs_nw = phs[a-1][4] phs_w = phs[a][4] pan_nw = pan[a-1][4] pan_w = pan[a][4] else : nw = notestart[a-1][b-1] w = notestart[a][b-1] dur_nw = dur[a-1][b-1] dur_w = dur[a][b-1] fq_nw = fq[a-1][b-1] fq_w = fq[a][b-1] amp_nw = amp[a-1][b-1] amp_w = amp[a][b-1] phs_nw = phs[a-1][b-1] phs_w = phs[a][b-1] pan_nw = pan[a-1][b-1] pan_w = pan[a][b-1] if b == 4 : ne = notestart[a-1][0] e = notestart[a][0] dur_ne = dur[a-1][0] dur_e = dur[a][0] fq_ne = fq[a-1][0] fq_e = fq[a][0] amp_ne = amp[a-1][0] amp_e = amp[a][0] phs_ne = phs[a-1][0] phs_e = phs[a][0] pan_ne = pan[a-1][0] pan_e = pan[a][0] else : ne = notestart[a-1][b+1] e = notestart[a][b+1] dur_ne = dur[a-1][b+1] dur_e = dur[a][b+1] fq_ne = fq[a-1][b+1] fq_e = fq[a][b+1] amp_ne = amp[a-1][b+1] amp_e = amp[a][b+1] phs_ne = phs[a-1][b+1] phs_e = phs[a][b+1] pan_ne = pan[a-1][b+1] pan_e = pan[a][b+1] notestore[a][b] = notestart[a][b]*n*ne*e*se*s*sw*w*nw durt = (dur[a][b]+dur_n+dur_ne+dur_e+dur_se+dur_s+dur_sw+dur_w+dur_nw)*.3 if durt > 16 : durt = durt*.33 durstore[a][b] = durt fqt = (fq[a][b]+fq_n+fq_ne+fq_e+fq_se+fq_s+fq_sw+fq_w+fq_nw)*.3 if fqt > 24 : fqt = fqt%3.0 fqt = int(fqt) fqstore[a][b] = fqt ampt = (amp[a][b]+amp_n+amp_ne+amp_e+amp_se+amp_s+amp_sw+amp_w+amp_nw)*.12 if ampt > 40 : ampt = ampt-10 if ampt < 20 : ampt = ampt+10 ampstore[a][b] = ampt phst = (phs[a][b]+phs_n+phs_ne+phs_e+phs_se+phs_s+phs_sw+phs_w+phs_nw)*.3 if phst > 10 : phst = phst*.1 phsstore[a][b] = phst pant = (pan[a][b]+pan_n+pan_ne+pan_e+pan_se+pan_s+pan_sw+pan_w+pan_nw)*.3 if pant > 10 : pant = pant*.1 panstore[a][b] = pant dur = durstore notestart = notestore fq = fqstore amp = ampstore phs = phsstore pan = panstore score = scoreText 11.0 77.0 2h11TET-2 -16764366 2 from ScriptingUtils import * from math import * scoreText = '' notetime = 0 notestart = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] notestore = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] dur = [[1,1,13,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] durstore = [[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] fq = [[4.0,7.0,1.0,7.0,10.0],[5.0,11.0,2.0,11.0,9.0],[3.0,3.0,8.0,13.0,3.0],[4.0,4.0,12.0,4.0,7.0],[13.0,5.0,5.0,3.0,7.0]] fqstore = [[5.0,7.0,1.0,7.0,10.0],[2.0,11.0,5.0,11.0,9.0],[13.0,3.0,8.0,13.0,3.0],[4.0,4.0,12.0,4.0,4.0],[6.0,5.0,5.0,9.0,5.0]] amp = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] ampstore = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] phs = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] phsstore = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] pan = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] panstore = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] while notetime < blueDuration-2 : notetime = notetime + 1 for a in range(len(notestart)) : for b in range(len(notestart[a])) : if notestart[a][b]==1 : freq = pow(2.0,(fq[a][b]/11.0)) scoreText += "i1 "+str(notetime)+" "+str(dur[a][b])+" "+str(freq*100.0)+" "+str(-1*amp[a][b])+" "+str(.1*phs[a][b])+" "+str((.2*pan[a][b])-1)+" \n" for a in range(len(notestart)) : for b in range(len(notestart[a])) : if a == 0 : n = notestart[4][b] s = notestart[1][b] dur_n = dur[4][b] dur_s = dur[1][b] fq_n = fq[4][b] fq_s = fq[1][b] amp_n = amp[4][b] amp_s = amp[1][b] phs_n = phs[4][b] phs_s = phs[1][b] pan_n = pan[4][b] pan_s = pan[1][b] if b == 4 : ne = notestart[4][0] e = notestart[0][0] se = notestart[1][0] dur_ne = dur[4][0] dur_e = dur[0][0] dur_se = dur[1][0] fq_ne = fq[4][0] fq_e = fq[0][0] fq_se = fq[1][0] amp_ne = amp[4][0] amp_e = amp[0][0] amp_se = amp[1][0] phs_ne = phs[4][0] phs_e = phs[0][0] phs_se = phs[1][0] pan_ne = pan[4][0] pan_e = pan[0][0] pan_se = pan[1][0] else : ne = notestart[4][b+1] e = notestart[0][b+1] se = notestart[1][b+1] dur_ne = dur[4][b+1] dur_e = dur[0][b+1] dur_se = dur[1][b+1] fq_ne = fq[4][b+1] fq_e = fq[0][b+1] fq_se = fq[1][b+1] amp_ne = amp[4][b+1] amp_e = amp[0][b+1] amp_se = amp[1][b+1] phs_ne = phs[4][b+1] phs_e = phs[0][b+1] phs_se = phs[1][b+1] pan_ne = pan[4][b+1] pan_e = pan[0][b+1] pan_se = pan[1][b+1] if b == 0 : nw = notestart[4][4] w = notestart[0][4] sw = notestart[1][4] dur_nw = dur[4][4] dur_w = dur[0][4] dur_sw = dur[1][4] fq_nw = fq[4][4] fq_w = fq[0][4] fq_sw = fq[1][4] amp_nw = amp[4][4] amp_w = amp[0][4] amp_sw = amp[1][4] phs_nw = phs[4][4] phs_w = phs[0][4] phs_sw = phs[1][4] pan_nw = pan[4][4] pan_w = pan[0][4] pan_sw = pan[1][4] else : nw = notestart[4][b-1] w = notestart[0][b-1] sw = notestart[1][b-1] dur_nw = dur[4][b-1] dur_w = dur[0][b-1] dur_sw = dur[1][b-1] fq_nw = fq[4][b-1] fq_w = fq[0][b-1] fq_sw = fq[1][b-1] amp_nw = amp[4][b-1] amp_w = amp[0][b-1] amp_sw = amp[1][b-1] phs_nw = phs[4][b-1] phs_w = phs[0][b-1] phs_sw = phs[1][b-1] pan_nw = pan[4][b-1] pan_w = pan[0][b-1] pan_sw = pan[1][b-1] else : n = notestart[a-1][b] dur_n = dur[a-1][b] fq_n = fq[a-1][b] amp_n = amp[a-1][b] phs_n = phs[a-1][b] pan_n = pan[a-1][b] if a == 4 : s = notestart[0][b] dur_s = dur[0][b] fq_s = fq[0][b] amp_s = amp[0][b] phs_s = phs[0][b] pan_s = pan[0][b] if b == 0 : sw = notestart[0][4] se = notestart[0][1] dur_sw = dur[0][4] dur_se = dur[0][1] fq_sw = fq[0][4] fq_se = fq[0][1] amp_sw = amp[0][4] amp_se = amp[0][1] phs_sw = phs[0][4] phs_se = phs[0][1] pan_sw = pan[0][4] pan_se = pan[0][1] else : sw = notestart[0][b-1] dur_sw = dur[0][b-1] fq_sw = fq[0][b-1] amp_sw = amp[0][b-1] phs_sw = phs[0][b-1] pan_sw = pan[0][b-1] if b == 4 : se = notestart[0][0] dur_se = dur[0][0] fq_se = fq[0][0] amp_se = amp[0][0] phs_se = phs[0][0] pan_se = pan[0][0] else : se = notestart[0][b+1] dur_se = dur[0][b+1] fq_se = fq[0][b+1] amp_se = amp[0][b+1] phs_se = phs[0][b+1] pan_se = pan[0][b+1] else : s = notestart[a+1][b] dur_s = dur[a+1][b] fq_s = fq[a+1][b] amp_s = amp[a+1][b] phs_s = phs[a+1][b] pan_s = pan[a+1][b] if b == 0 : sw = notestart[a+1][4] se = notestart[a+1][0] dur_sw = dur[a+1][4] dur_se = dur[a+1][0] fq_sw = fq[a+1][4] fq_se = fq[a+1][0] amp_sw = amp[a+1][4] amp_se = amp[a+1][0] phs_sw = phs[a+1][4] phs_se = phs[a+1][0] pan_sw = pan[a+1][4] pan_se = pan[a+1][0] else : sw = notestart[a+1][b-1] dur_sw = dur[a+1][b-1] fq_sw = fq[a+1][b-1] amp_sw = amp[a+1][b-1] phs_sw = phs[a+1][b-1] pan_sw = pan[a+1][b-1] if b == 4 : se = notestart[a+1][0] dur_se = dur[a+1][0] fq_se = fq[a+1][0] amp_se = amp[a+1][0] phs_se = phs[a+1][0] pan_se = pan[a+1][0] else : se = notestart[a+1][b+1] dur_se = dur[a+1][b+1] fq_se = fq[a+1][b+1] amp_se = amp[a+1][b+1] phs_se = phs[a+1][b+1] pan_se = pan[a+1][b+1] if b == 0 : nw = notestart[a-1][4] w = notestart[a][4] dur_nw = dur[a-1][4] dur_w = dur[a][4] fq_nw = fq[a-1][4] fq_w = fq[a][4] amp_nw = amp[a-1][4] amp_w = amp[a][4] phs_nw = phs[a-1][4] phs_w = phs[a][4] pan_nw = pan[a-1][4] pan_w = pan[a][4] else : nw = notestart[a-1][b-1] w = notestart[a][b-1] dur_nw = dur[a-1][b-1] dur_w = dur[a][b-1] fq_nw = fq[a-1][b-1] fq_w = fq[a][b-1] amp_nw = amp[a-1][b-1] amp_w = amp[a][b-1] phs_nw = phs[a-1][b-1] phs_w = phs[a][b-1] pan_nw = pan[a-1][b-1] pan_w = pan[a][b-1] if b == 4 : ne = notestart[a-1][0] e = notestart[a][0] dur_ne = dur[a-1][0] dur_e = dur[a][0] fq_ne = fq[a-1][0] fq_e = fq[a][0] amp_ne = amp[a-1][0] amp_e = amp[a][0] phs_ne = phs[a-1][0] phs_e = phs[a][0] pan_ne = pan[a-1][0] pan_e = pan[a][0] else : ne = notestart[a-1][b+1] e = notestart[a][b+1] dur_ne = dur[a-1][b+1] dur_e = dur[a][b+1] fq_ne = fq[a-1][b+1] fq_e = fq[a][b+1] amp_ne = amp[a-1][b+1] amp_e = amp[a][b+1] phs_ne = phs[a-1][b+1] phs_e = phs[a][b+1] pan_ne = pan[a-1][b+1] pan_e = pan[a][b+1] notestore[a][b] = notestart[a][b]*n*ne*e*se*s*sw*w*nw durt = (dur[a][b]+dur_n+dur_ne+dur_e+dur_se+dur_s+dur_sw+dur_w+dur_nw)*.3 if durt > 16 : durt = durt*.33 durstore[a][b] = durt fqt = (fq[a][b]+fq_n+fq_ne+fq_e+fq_se+fq_s+fq_sw+fq_w+fq_nw)*.3 if fqt > 24 : fqt = fqt%3.0 fqt = int(fqt) fqstore[a][b] = fqt ampt = (amp[a][b]+amp_n+amp_ne+amp_e+amp_se+amp_s+amp_sw+amp_w+amp_nw)*.12 if ampt > 40 : ampt = ampt-10 if ampt < 20 : ampt = ampt+10 ampstore[a][b] = ampt phst = (phs[a][b]+phs_n+phs_ne+phs_e+phs_se+phs_s+phs_sw+phs_w+phs_nw)*.3 if phst > 10 : phst = phst*.1 phsstore[a][b] = phst pant = (pan[a][b]+pan_n+pan_ne+pan_e+pan_se+pan_s+pan_sw+pan_w+pan_nw)*.3 if pant > 10 : pant = pant*.1 panstore[a][b] = pant dur = durstore notestart = notestore fq = fqstore amp = ampstore phs = phsstore pan = panstore score = scoreText 11.0 22.0 2h13TET-0 -13500366 2 from ScriptingUtils import * from math import * scoreText = '' notetime = 0 notestart = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] notestore = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] dur = [[1,1,13,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] durstore = [[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] fq = [[14.0,7.0,1.0,7.0,10.0],[2.0,11.0,2.0,11.0,9.0],[3.0,3.0,8.0,13.0,3.0],[4.0,4.0,12.0,4.0,4.0],[6.0,5.0,5.0,9.0,5.0]] fqstore = [[14.0,7.0,1.0,7.0,10.0],[2.0,11.0,2.0,11.0,9.0],[3.0,3.0,8.0,13.0,3.0],[4.0,4.0,12.0,4.0,4.0],[6.0,5.0,5.0,9.0,5.0]] amp = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] ampstore = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] phs = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] phsstore = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] pan = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] panstore = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] while notetime < blueDuration-2 : notetime = notetime + 1 for a in range(len(notestart)) : for b in range(len(notestart[a])) : if notestart[a][b]==1 : freq = pow(2.0,(fq[a][b]/13.0)) scoreText += "i1 "+str(notetime)+" "+str(dur[a][b])+" "+str(freq*100.0)+" "+str(-1*amp[a][b])+" "+str(.1*phs[a][b])+" "+str((.2*pan[a][b])-1)+" \n" for a in range(len(notestart)) : for b in range(len(notestart[a])) : if a == 0 : n = notestart[4][b] s = notestart[1][b] dur_n = dur[4][b] dur_s = dur[1][b] fq_n = fq[4][b] fq_s = fq[1][b] amp_n = amp[4][b] amp_s = amp[1][b] phs_n = phs[4][b] phs_s = phs[1][b] pan_n = pan[4][b] pan_s = pan[1][b] if b == 4 : ne = notestart[4][0] e = notestart[0][0] se = notestart[1][0] dur_ne = dur[4][0] dur_e = dur[0][0] dur_se = dur[1][0] fq_ne = fq[4][0] fq_e = fq[0][0] fq_se = fq[1][0] amp_ne = amp[4][0] amp_e = amp[0][0] amp_se = amp[1][0] phs_ne = phs[4][0] phs_e = phs[0][0] phs_se = phs[1][0] pan_ne = pan[4][0] pan_e = pan[0][0] pan_se = pan[1][0] else : ne = notestart[4][b+1] e = notestart[0][b+1] se = notestart[1][b+1] dur_ne = dur[4][b+1] dur_e = dur[0][b+1] dur_se = dur[1][b+1] fq_ne = fq[4][b+1] fq_e = fq[0][b+1] fq_se = fq[1][b+1] amp_ne = amp[4][b+1] amp_e = amp[0][b+1] amp_se = amp[1][b+1] phs_ne = phs[4][b+1] phs_e = phs[0][b+1] phs_se = phs[1][b+1] pan_ne = pan[4][b+1] pan_e = pan[0][b+1] pan_se = pan[1][b+1] if b == 0 : nw = notestart[4][4] w = notestart[0][4] sw = notestart[1][4] dur_nw = dur[4][4] dur_w = dur[0][4] dur_sw = dur[1][4] fq_nw = fq[4][4] fq_w = fq[0][4] fq_sw = fq[1][4] amp_nw = amp[4][4] amp_w = amp[0][4] amp_sw = amp[1][4] phs_nw = phs[4][4] phs_w = phs[0][4] phs_sw = phs[1][4] pan_nw = pan[4][4] pan_w = pan[0][4] pan_sw = pan[1][4] else : nw = notestart[4][b-1] w = notestart[0][b-1] sw = notestart[1][b-1] dur_nw = dur[4][b-1] dur_w = dur[0][b-1] dur_sw = dur[1][b-1] fq_nw = fq[4][b-1] fq_w = fq[0][b-1] fq_sw = fq[1][b-1] amp_nw = amp[4][b-1] amp_w = amp[0][b-1] amp_sw = amp[1][b-1] phs_nw = phs[4][b-1] phs_w = phs[0][b-1] phs_sw = phs[1][b-1] pan_nw = pan[4][b-1] pan_w = pan[0][b-1] pan_sw = pan[1][b-1] else : n = notestart[a-1][b] dur_n = dur[a-1][b] fq_n = fq[a-1][b] amp_n = amp[a-1][b] phs_n = phs[a-1][b] pan_n = pan[a-1][b] if a == 4 : s = notestart[0][b] dur_s = dur[0][b] fq_s = fq[0][b] amp_s = amp[0][b] phs_s = phs[0][b] pan_s = pan[0][b] if b == 0 : sw = notestart[0][4] se = notestart[0][1] dur_sw = dur[0][4] dur_se = dur[0][1] fq_sw = fq[0][4] fq_se = fq[0][1] amp_sw = amp[0][4] amp_se = amp[0][1] phs_sw = phs[0][4] phs_se = phs[0][1] pan_sw = pan[0][4] pan_se = pan[0][1] else : sw = notestart[0][b-1] dur_sw = dur[0][b-1] fq_sw = fq[0][b-1] amp_sw = amp[0][b-1] phs_sw = phs[0][b-1] pan_sw = pan[0][b-1] if b == 4 : se = notestart[0][0] dur_se = dur[0][0] fq_se = fq[0][0] amp_se = amp[0][0] phs_se = phs[0][0] pan_se = pan[0][0] else : se = notestart[0][b+1] dur_se = dur[0][b+1] fq_se = fq[0][b+1] amp_se = amp[0][b+1] phs_se = phs[0][b+1] pan_se = pan[0][b+1] else : s = notestart[a+1][b] dur_s = dur[a+1][b] fq_s = fq[a+1][b] amp_s = amp[a+1][b] phs_s = phs[a+1][b] pan_s = pan[a+1][b] if b == 0 : sw = notestart[a+1][4] se = notestart[a+1][0] dur_sw = dur[a+1][4] dur_se = dur[a+1][0] fq_sw = fq[a+1][4] fq_se = fq[a+1][0] amp_sw = amp[a+1][4] amp_se = amp[a+1][0] phs_sw = phs[a+1][4] phs_se = phs[a+1][0] pan_sw = pan[a+1][4] pan_se = pan[a+1][0] else : sw = notestart[a+1][b-1] dur_sw = dur[a+1][b-1] fq_sw = fq[a+1][b-1] amp_sw = amp[a+1][b-1] phs_sw = phs[a+1][b-1] pan_sw = pan[a+1][b-1] if b == 4 : se = notestart[a+1][0] dur_se = dur[a+1][0] fq_se = fq[a+1][0] amp_se = amp[a+1][0] phs_se = phs[a+1][0] pan_se = pan[a+1][0] else : se = notestart[a+1][b+1] dur_se = dur[a+1][b+1] fq_se = fq[a+1][b+1] amp_se = amp[a+1][b+1] phs_se = phs[a+1][b+1] pan_se = pan[a+1][b+1] if b == 0 : nw = notestart[a-1][4] w = notestart[a][4] dur_nw = dur[a-1][4] dur_w = dur[a][4] fq_nw = fq[a-1][4] fq_w = fq[a][4] amp_nw = amp[a-1][4] amp_w = amp[a][4] phs_nw = phs[a-1][4] phs_w = phs[a][4] pan_nw = pan[a-1][4] pan_w = pan[a][4] else : nw = notestart[a-1][b-1] w = notestart[a][b-1] dur_nw = dur[a-1][b-1] dur_w = dur[a][b-1] fq_nw = fq[a-1][b-1] fq_w = fq[a][b-1] amp_nw = amp[a-1][b-1] amp_w = amp[a][b-1] phs_nw = phs[a-1][b-1] phs_w = phs[a][b-1] pan_nw = pan[a-1][b-1] pan_w = pan[a][b-1] if b == 4 : ne = notestart[a-1][0] e = notestart[a][0] dur_ne = dur[a-1][0] dur_e = dur[a][0] fq_ne = fq[a-1][0] fq_e = fq[a][0] amp_ne = amp[a-1][0] amp_e = amp[a][0] phs_ne = phs[a-1][0] phs_e = phs[a][0] pan_ne = pan[a-1][0] pan_e = pan[a][0] else : ne = notestart[a-1][b+1] e = notestart[a][b+1] dur_ne = dur[a-1][b+1] dur_e = dur[a][b+1] fq_ne = fq[a-1][b+1] fq_e = fq[a][b+1] amp_ne = amp[a-1][b+1] amp_e = amp[a][b+1] phs_ne = phs[a-1][b+1] phs_e = phs[a][b+1] pan_ne = pan[a-1][b+1] pan_e = pan[a][b+1] notestore[a][b] = notestart[a][b]*n*ne*e*se*s*sw*w*nw durt = (dur[a][b]+dur_n+dur_ne+dur_e+dur_se+dur_s+dur_sw+dur_w+dur_nw)*.3 if durt > 16 : durt = durt*.33 durstore[a][b] = durt fqt = (fq[a][b]+fq_n+fq_ne+fq_e+fq_se+fq_s+fq_sw+fq_w+fq_nw)*.3 if fqt > 24 : fqt = fqt%3.0 fqt = int(fqt) fqstore[a][b] = fqt ampt = (amp[a][b]+amp_n+amp_ne+amp_e+amp_se+amp_s+amp_sw+amp_w+amp_nw)*.12 if ampt > 40 : ampt = ampt-10 if ampt < 20 : ampt = ampt+10 ampstore[a][b] = ampt phst = (phs[a][b]+phs_n+phs_ne+phs_e+phs_se+phs_s+phs_sw+phs_w+phs_nw)*.3 if phst > 10 : phst = phst*.1 phsstore[a][b] = phst pant = (pan[a][b]+pan_n+pan_ne+pan_e+pan_se+pan_s+pan_sw+pan_w+pan_nw)*.3 if pant > 10 : pant = pant*.1 panstore[a][b] = pant dur = durstore notestart = notestore fq = fqstore amp = ampstore phs = phsstore pan = panstore score = scoreText 11.0 55.0 2h13TET-1 -13500366 2 from ScriptingUtils import * from math import * scoreText = '' notetime = 0 notestart = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] notestore = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] dur = [[1,1,13,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] durstore = [[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] fq = [[14.0,7.0,1.0,7.0,10.0],[2.0,11.0,2.0,13.0,9.0],[8.0,3.0,8.0,13.0,3.0],[12.0,4.0,12.0,9.0,4.0],[6.0,5.0,7.0,9.0,5.0]] fqstore = [[14.0,7.0,1.0,7.0,10.0],[2.0,11.0,2.0,11.0,9.0],[3.0,3.0,8.0,13.0,3.0],[4.0,4.0,12.0,4.0,4.0],[6.0,5.0,5.0,9.0,5.0]] amp = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] ampstore = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] phs = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] phsstore = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] pan = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] panstore = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] while notetime < blueDuration-2 : notetime = notetime + 1 for a in range(len(notestart)) : for b in range(len(notestart[a])) : if notestart[a][b]==1 : freq = pow(2.0,(fq[a][b]/13.0)) scoreText += "i1 "+str(notetime)+" "+str(dur[a][b])+" "+str(freq*100.0)+" "+str(-1*amp[a][b])+" "+str(.1*phs[a][b])+" "+str((.2*pan[a][b])-1)+" \n" for a in range(len(notestart)) : for b in range(len(notestart[a])) : if a == 0 : n = notestart[4][b] s = notestart[1][b] dur_n = dur[4][b] dur_s = dur[1][b] fq_n = fq[4][b] fq_s = fq[1][b] amp_n = amp[4][b] amp_s = amp[1][b] phs_n = phs[4][b] phs_s = phs[1][b] pan_n = pan[4][b] pan_s = pan[1][b] if b == 4 : ne = notestart[4][0] e = notestart[0][0] se = notestart[1][0] dur_ne = dur[4][0] dur_e = dur[0][0] dur_se = dur[1][0] fq_ne = fq[4][0] fq_e = fq[0][0] fq_se = fq[1][0] amp_ne = amp[4][0] amp_e = amp[0][0] amp_se = amp[1][0] phs_ne = phs[4][0] phs_e = phs[0][0] phs_se = phs[1][0] pan_ne = pan[4][0] pan_e = pan[0][0] pan_se = pan[1][0] else : ne = notestart[4][b+1] e = notestart[0][b+1] se = notestart[1][b+1] dur_ne = dur[4][b+1] dur_e = dur[0][b+1] dur_se = dur[1][b+1] fq_ne = fq[4][b+1] fq_e = fq[0][b+1] fq_se = fq[1][b+1] amp_ne = amp[4][b+1] amp_e = amp[0][b+1] amp_se = amp[1][b+1] phs_ne = phs[4][b+1] phs_e = phs[0][b+1] phs_se = phs[1][b+1] pan_ne = pan[4][b+1] pan_e = pan[0][b+1] pan_se = pan[1][b+1] if b == 0 : nw = notestart[4][4] w = notestart[0][4] sw = notestart[1][4] dur_nw = dur[4][4] dur_w = dur[0][4] dur_sw = dur[1][4] fq_nw = fq[4][4] fq_w = fq[0][4] fq_sw = fq[1][4] amp_nw = amp[4][4] amp_w = amp[0][4] amp_sw = amp[1][4] phs_nw = phs[4][4] phs_w = phs[0][4] phs_sw = phs[1][4] pan_nw = pan[4][4] pan_w = pan[0][4] pan_sw = pan[1][4] else : nw = notestart[4][b-1] w = notestart[0][b-1] sw = notestart[1][b-1] dur_nw = dur[4][b-1] dur_w = dur[0][b-1] dur_sw = dur[1][b-1] fq_nw = fq[4][b-1] fq_w = fq[0][b-1] fq_sw = fq[1][b-1] amp_nw = amp[4][b-1] amp_w = amp[0][b-1] amp_sw = amp[1][b-1] phs_nw = phs[4][b-1] phs_w = phs[0][b-1] phs_sw = phs[1][b-1] pan_nw = pan[4][b-1] pan_w = pan[0][b-1] pan_sw = pan[1][b-1] else : n = notestart[a-1][b] dur_n = dur[a-1][b] fq_n = fq[a-1][b] amp_n = amp[a-1][b] phs_n = phs[a-1][b] pan_n = pan[a-1][b] if a == 4 : s = notestart[0][b] dur_s = dur[0][b] fq_s = fq[0][b] amp_s = amp[0][b] phs_s = phs[0][b] pan_s = pan[0][b] if b == 0 : sw = notestart[0][4] se = notestart[0][1] dur_sw = dur[0][4] dur_se = dur[0][1] fq_sw = fq[0][4] fq_se = fq[0][1] amp_sw = amp[0][4] amp_se = amp[0][1] phs_sw = phs[0][4] phs_se = phs[0][1] pan_sw = pan[0][4] pan_se = pan[0][1] else : sw = notestart[0][b-1] dur_sw = dur[0][b-1] fq_sw = fq[0][b-1] amp_sw = amp[0][b-1] phs_sw = phs[0][b-1] pan_sw = pan[0][b-1] if b == 4 : se = notestart[0][0] dur_se = dur[0][0] fq_se = fq[0][0] amp_se = amp[0][0] phs_se = phs[0][0] pan_se = pan[0][0] else : se = notestart[0][b+1] dur_se = dur[0][b+1] fq_se = fq[0][b+1] amp_se = amp[0][b+1] phs_se = phs[0][b+1] pan_se = pan[0][b+1] else : s = notestart[a+1][b] dur_s = dur[a+1][b] fq_s = fq[a+1][b] amp_s = amp[a+1][b] phs_s = phs[a+1][b] pan_s = pan[a+1][b] if b == 0 : sw = notestart[a+1][4] se = notestart[a+1][0] dur_sw = dur[a+1][4] dur_se = dur[a+1][0] fq_sw = fq[a+1][4] fq_se = fq[a+1][0] amp_sw = amp[a+1][4] amp_se = amp[a+1][0] phs_sw = phs[a+1][4] phs_se = phs[a+1][0] pan_sw = pan[a+1][4] pan_se = pan[a+1][0] else : sw = notestart[a+1][b-1] dur_sw = dur[a+1][b-1] fq_sw = fq[a+1][b-1] amp_sw = amp[a+1][b-1] phs_sw = phs[a+1][b-1] pan_sw = pan[a+1][b-1] if b == 4 : se = notestart[a+1][0] dur_se = dur[a+1][0] fq_se = fq[a+1][0] amp_se = amp[a+1][0] phs_se = phs[a+1][0] pan_se = pan[a+1][0] else : se = notestart[a+1][b+1] dur_se = dur[a+1][b+1] fq_se = fq[a+1][b+1] amp_se = amp[a+1][b+1] phs_se = phs[a+1][b+1] pan_se = pan[a+1][b+1] if b == 0 : nw = notestart[a-1][4] w = notestart[a][4] dur_nw = dur[a-1][4] dur_w = dur[a][4] fq_nw = fq[a-1][4] fq_w = fq[a][4] amp_nw = amp[a-1][4] amp_w = amp[a][4] phs_nw = phs[a-1][4] phs_w = phs[a][4] pan_nw = pan[a-1][4] pan_w = pan[a][4] else : nw = notestart[a-1][b-1] w = notestart[a][b-1] dur_nw = dur[a-1][b-1] dur_w = dur[a][b-1] fq_nw = fq[a-1][b-1] fq_w = fq[a][b-1] amp_nw = amp[a-1][b-1] amp_w = amp[a][b-1] phs_nw = phs[a-1][b-1] phs_w = phs[a][b-1] pan_nw = pan[a-1][b-1] pan_w = pan[a][b-1] if b == 4 : ne = notestart[a-1][0] e = notestart[a][0] dur_ne = dur[a-1][0] dur_e = dur[a][0] fq_ne = fq[a-1][0] fq_e = fq[a][0] amp_ne = amp[a-1][0] amp_e = amp[a][0] phs_ne = phs[a-1][0] phs_e = phs[a][0] pan_ne = pan[a-1][0] pan_e = pan[a][0] else : ne = notestart[a-1][b+1] e = notestart[a][b+1] dur_ne = dur[a-1][b+1] dur_e = dur[a][b+1] fq_ne = fq[a-1][b+1] fq_e = fq[a][b+1] amp_ne = amp[a-1][b+1] amp_e = amp[a][b+1] phs_ne = phs[a-1][b+1] phs_e = phs[a][b+1] pan_ne = pan[a-1][b+1] pan_e = pan[a][b+1] notestore[a][b] = notestart[a][b]*n*ne*e*se*s*sw*w*nw durt = (dur[a][b]+dur_n+dur_ne+dur_e+dur_se+dur_s+dur_sw+dur_w+dur_nw)*.3 if durt > 16 : durt = durt*.33 durstore[a][b] = durt fqt = (fq[a][b]+fq_n+fq_ne+fq_e+fq_se+fq_s+fq_sw+fq_w+fq_nw)*.3 if fqt > 24 : fqt = fqt%3.0 fqt = int(fqt) fqstore[a][b] = fqt ampt = (amp[a][b]+amp_n+amp_ne+amp_e+amp_se+amp_s+amp_sw+amp_w+amp_nw)*.12 if ampt > 40 : ampt = ampt-10 if ampt < 20 : ampt = ampt+10 ampstore[a][b] = ampt phst = (phs[a][b]+phs_n+phs_ne+phs_e+phs_se+phs_s+phs_sw+phs_w+phs_nw)*.3 if phst > 10 : phst = phst*.1 phsstore[a][b] = phst pant = (pan[a][b]+pan_n+pan_ne+pan_e+pan_se+pan_s+pan_sw+pan_w+pan_nw)*.3 if pant > 10 : pant = pant*.1 panstore[a][b] = pant dur = durstore notestart = notestore fq = fqstore amp = ampstore phs = phsstore pan = panstore score = scoreText 11.0 88.0 2h13TET-2 -13500366 2 from ScriptingUtils import * from math import * scoreText = '' notetime = 0 notestart = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] notestore = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] dur = [[1,1,13,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] durstore = [[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] fq = [[4.0,7.0,13.0,7.0,12.0],[12.0,11.0,9.0,1.0,9.0],[8.0,3.0,0.0,13.0,3.0],[12.0,4.0,12.0,9.0,4.0],[6.0,5.0,7.0,9.0,5.0]] fqstore = [[14.0,7.0,1.0,7.0,10.0],[2.0,11.0,2.0,11.0,9.0],[3.0,3.0,8.0,13.0,3.0],[4.0,4.0,12.0,4.0,4.0],[6.0,5.0,5.0,9.0,5.0]] amp = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] ampstore = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] phs = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] phsstore = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] pan = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] panstore = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] while notetime < blueDuration-2 : notetime = notetime + 1 for a in range(len(notestart)) : for b in range(len(notestart[a])) : if notestart[a][b]==1 : freq = pow(2.0,(fq[a][b]/13.0)) scoreText += "i1 "+str(notetime)+" "+str(dur[a][b])+" "+str(freq*100.0)+" "+str(-1*amp[a][b])+" "+str(.1*phs[a][b])+" "+str((.2*pan[a][b])-1)+" \n" for a in range(len(notestart)) : for b in range(len(notestart[a])) : if a == 0 : n = notestart[4][b] s = notestart[1][b] dur_n = dur[4][b] dur_s = dur[1][b] fq_n = fq[4][b] fq_s = fq[1][b] amp_n = amp[4][b] amp_s = amp[1][b] phs_n = phs[4][b] phs_s = phs[1][b] pan_n = pan[4][b] pan_s = pan[1][b] if b == 4 : ne = notestart[4][0] e = notestart[0][0] se = notestart[1][0] dur_ne = dur[4][0] dur_e = dur[0][0] dur_se = dur[1][0] fq_ne = fq[4][0] fq_e = fq[0][0] fq_se = fq[1][0] amp_ne = amp[4][0] amp_e = amp[0][0] amp_se = amp[1][0] phs_ne = phs[4][0] phs_e = phs[0][0] phs_se = phs[1][0] pan_ne = pan[4][0] pan_e = pan[0][0] pan_se = pan[1][0] else : ne = notestart[4][b+1] e = notestart[0][b+1] se = notestart[1][b+1] dur_ne = dur[4][b+1] dur_e = dur[0][b+1] dur_se = dur[1][b+1] fq_ne = fq[4][b+1] fq_e = fq[0][b+1] fq_se = fq[1][b+1] amp_ne = amp[4][b+1] amp_e = amp[0][b+1] amp_se = amp[1][b+1] phs_ne = phs[4][b+1] phs_e = phs[0][b+1] phs_se = phs[1][b+1] pan_ne = pan[4][b+1] pan_e = pan[0][b+1] pan_se = pan[1][b+1] if b == 0 : nw = notestart[4][4] w = notestart[0][4] sw = notestart[1][4] dur_nw = dur[4][4] dur_w = dur[0][4] dur_sw = dur[1][4] fq_nw = fq[4][4] fq_w = fq[0][4] fq_sw = fq[1][4] amp_nw = amp[4][4] amp_w = amp[0][4] amp_sw = amp[1][4] phs_nw = phs[4][4] phs_w = phs[0][4] phs_sw = phs[1][4] pan_nw = pan[4][4] pan_w = pan[0][4] pan_sw = pan[1][4] else : nw = notestart[4][b-1] w = notestart[0][b-1] sw = notestart[1][b-1] dur_nw = dur[4][b-1] dur_w = dur[0][b-1] dur_sw = dur[1][b-1] fq_nw = fq[4][b-1] fq_w = fq[0][b-1] fq_sw = fq[1][b-1] amp_nw = amp[4][b-1] amp_w = amp[0][b-1] amp_sw = amp[1][b-1] phs_nw = phs[4][b-1] phs_w = phs[0][b-1] phs_sw = phs[1][b-1] pan_nw = pan[4][b-1] pan_w = pan[0][b-1] pan_sw = pan[1][b-1] else : n = notestart[a-1][b] dur_n = dur[a-1][b] fq_n = fq[a-1][b] amp_n = amp[a-1][b] phs_n = phs[a-1][b] pan_n = pan[a-1][b] if a == 4 : s = notestart[0][b] dur_s = dur[0][b] fq_s = fq[0][b] amp_s = amp[0][b] phs_s = phs[0][b] pan_s = pan[0][b] if b == 0 : sw = notestart[0][4] se = notestart[0][1] dur_sw = dur[0][4] dur_se = dur[0][1] fq_sw = fq[0][4] fq_se = fq[0][1] amp_sw = amp[0][4] amp_se = amp[0][1] phs_sw = phs[0][4] phs_se = phs[0][1] pan_sw = pan[0][4] pan_se = pan[0][1] else : sw = notestart[0][b-1] dur_sw = dur[0][b-1] fq_sw = fq[0][b-1] amp_sw = amp[0][b-1] phs_sw = phs[0][b-1] pan_sw = pan[0][b-1] if b == 4 : se = notestart[0][0] dur_se = dur[0][0] fq_se = fq[0][0] amp_se = amp[0][0] phs_se = phs[0][0] pan_se = pan[0][0] else : se = notestart[0][b+1] dur_se = dur[0][b+1] fq_se = fq[0][b+1] amp_se = amp[0][b+1] phs_se = phs[0][b+1] pan_se = pan[0][b+1] else : s = notestart[a+1][b] dur_s = dur[a+1][b] fq_s = fq[a+1][b] amp_s = amp[a+1][b] phs_s = phs[a+1][b] pan_s = pan[a+1][b] if b == 0 : sw = notestart[a+1][4] se = notestart[a+1][0] dur_sw = dur[a+1][4] dur_se = dur[a+1][0] fq_sw = fq[a+1][4] fq_se = fq[a+1][0] amp_sw = amp[a+1][4] amp_se = amp[a+1][0] phs_sw = phs[a+1][4] phs_se = phs[a+1][0] pan_sw = pan[a+1][4] pan_se = pan[a+1][0] else : sw = notestart[a+1][b-1] dur_sw = dur[a+1][b-1] fq_sw = fq[a+1][b-1] amp_sw = amp[a+1][b-1] phs_sw = phs[a+1][b-1] pan_sw = pan[a+1][b-1] if b == 4 : se = notestart[a+1][0] dur_se = dur[a+1][0] fq_se = fq[a+1][0] amp_se = amp[a+1][0] phs_se = phs[a+1][0] pan_se = pan[a+1][0] else : se = notestart[a+1][b+1] dur_se = dur[a+1][b+1] fq_se = fq[a+1][b+1] amp_se = amp[a+1][b+1] phs_se = phs[a+1][b+1] pan_se = pan[a+1][b+1] if b == 0 : nw = notestart[a-1][4] w = notestart[a][4] dur_nw = dur[a-1][4] dur_w = dur[a][4] fq_nw = fq[a-1][4] fq_w = fq[a][4] amp_nw = amp[a-1][4] amp_w = amp[a][4] phs_nw = phs[a-1][4] phs_w = phs[a][4] pan_nw = pan[a-1][4] pan_w = pan[a][4] else : nw = notestart[a-1][b-1] w = notestart[a][b-1] dur_nw = dur[a-1][b-1] dur_w = dur[a][b-1] fq_nw = fq[a-1][b-1] fq_w = fq[a][b-1] amp_nw = amp[a-1][b-1] amp_w = amp[a][b-1] phs_nw = phs[a-1][b-1] phs_w = phs[a][b-1] pan_nw = pan[a-1][b-1] pan_w = pan[a][b-1] if b == 4 : ne = notestart[a-1][0] e = notestart[a][0] dur_ne = dur[a-1][0] dur_e = dur[a][0] fq_ne = fq[a-1][0] fq_e = fq[a][0] amp_ne = amp[a-1][0] amp_e = amp[a][0] phs_ne = phs[a-1][0] phs_e = phs[a][0] pan_ne = pan[a-1][0] pan_e = pan[a][0] else : ne = notestart[a-1][b+1] e = notestart[a][b+1] dur_ne = dur[a-1][b+1] dur_e = dur[a][b+1] fq_ne = fq[a-1][b+1] fq_e = fq[a][b+1] amp_ne = amp[a-1][b+1] amp_e = amp[a][b+1] phs_ne = phs[a-1][b+1] phs_e = phs[a][b+1] pan_ne = pan[a-1][b+1] pan_e = pan[a][b+1] notestore[a][b] = notestart[a][b]*n*ne*e*se*s*sw*w*nw durt = (dur[a][b]+dur_n+dur_ne+dur_e+dur_se+dur_s+dur_sw+dur_w+dur_nw)*.3 if durt > 16 : durt = durt*.33 durstore[a][b] = durt fqt = (fq[a][b]+fq_n+fq_ne+fq_e+fq_se+fq_s+fq_sw+fq_w+fq_nw)*.3 if fqt > 24 : fqt = fqt%3.0 fqt = int(fqt) fqstore[a][b] = fqt ampt = (amp[a][b]+amp_n+amp_ne+amp_e+amp_se+amp_s+amp_sw+amp_w+amp_nw)*.12 if ampt > 40 : ampt = ampt-10 if ampt < 20 : ampt = ampt+10 ampstore[a][b] = ampt phst = (phs[a][b]+phs_n+phs_ne+phs_e+phs_se+phs_s+phs_sw+phs_w+phs_nw)*.3 if phst > 10 : phst = phst*.1 phsstore[a][b] = phst pant = (pan[a][b]+pan_n+pan_ne+pan_e+pan_se+pan_s+pan_sw+pan_w+pan_nw)*.3 if pant > 10 : pant = pant*.1 panstore[a][b] = pant dur = durstore notestart = notestore fq = fqstore amp = ampstore phs = phsstore pan = panstore score = scoreText 11.0 99.0 2h12TET-3 -13487616 2 from ScriptingUtils import * from math import * scoreText = '' notetime = 0 notestart = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] notestore = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] dur = [[1,1,13,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] durstore = [[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] fq = [[14.0,7.0,1.0,7.0,10.0],[9.0,11.0,12.0,6.0,4.0],[11.0,14.0,8.0,11.0,3.0],[5.0,9.0,3.0,4.0,4.0],[6.0,10.0,5.0,0.0,5.0]] fqstore = [[14.0,7.0,1.0,7.0,10.0],[2.0,11.0,2.0,11.0,9.0],[3.0,3.0,8.0,13.0,3.0],[4.0,4.0,12.0,4.0,4.0],[6.0,5.0,5.0,9.0,5.0]] amp = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] ampstore = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] phs = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] phsstore = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] pan = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] panstore = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] while notetime < blueDuration-2 : notetime = notetime + 1 for a in range(len(notestart)) : for b in range(len(notestart[a])) : if notestart[a][b]==1 : freq = pow(2.0,(fq[a][b]/12.0)) scoreText += "i1 "+str(notetime)+" "+str(dur[a][b])+" "+str(freq*100.0)+" "+str(-1*amp[a][b])+" "+str(.1*phs[a][b])+" "+str((.2*pan[a][b])-1)+" \n" for a in range(len(notestart)) : for b in range(len(notestart[a])) : if a == 0 : n = notestart[4][b] s = notestart[1][b] dur_n = dur[4][b] dur_s = dur[1][b] fq_n = fq[4][b] fq_s = fq[1][b] amp_n = amp[4][b] amp_s = amp[1][b] phs_n = phs[4][b] phs_s = phs[1][b] pan_n = pan[4][b] pan_s = pan[1][b] if b == 4 : ne = notestart[4][0] e = notestart[0][0] se = notestart[1][0] dur_ne = dur[4][0] dur_e = dur[0][0] dur_se = dur[1][0] fq_ne = fq[4][0] fq_e = fq[0][0] fq_se = fq[1][0] amp_ne = amp[4][0] amp_e = amp[0][0] amp_se = amp[1][0] phs_ne = phs[4][0] phs_e = phs[0][0] phs_se = phs[1][0] pan_ne = pan[4][0] pan_e = pan[0][0] pan_se = pan[1][0] else : ne = notestart[4][b+1] e = notestart[0][b+1] se = notestart[1][b+1] dur_ne = dur[4][b+1] dur_e = dur[0][b+1] dur_se = dur[1][b+1] fq_ne = fq[4][b+1] fq_e = fq[0][b+1] fq_se = fq[1][b+1] amp_ne = amp[4][b+1] amp_e = amp[0][b+1] amp_se = amp[1][b+1] phs_ne = phs[4][b+1] phs_e = phs[0][b+1] phs_se = phs[1][b+1] pan_ne = pan[4][b+1] pan_e = pan[0][b+1] pan_se = pan[1][b+1] if b == 0 : nw = notestart[4][4] w = notestart[0][4] sw = notestart[1][4] dur_nw = dur[4][4] dur_w = dur[0][4] dur_sw = dur[1][4] fq_nw = fq[4][4] fq_w = fq[0][4] fq_sw = fq[1][4] amp_nw = amp[4][4] amp_w = amp[0][4] amp_sw = amp[1][4] phs_nw = phs[4][4] phs_w = phs[0][4] phs_sw = phs[1][4] pan_nw = pan[4][4] pan_w = pan[0][4] pan_sw = pan[1][4] else : nw = notestart[4][b-1] w = notestart[0][b-1] sw = notestart[1][b-1] dur_nw = dur[4][b-1] dur_w = dur[0][b-1] dur_sw = dur[1][b-1] fq_nw = fq[4][b-1] fq_w = fq[0][b-1] fq_sw = fq[1][b-1] amp_nw = amp[4][b-1] amp_w = amp[0][b-1] amp_sw = amp[1][b-1] phs_nw = phs[4][b-1] phs_w = phs[0][b-1] phs_sw = phs[1][b-1] pan_nw = pan[4][b-1] pan_w = pan[0][b-1] pan_sw = pan[1][b-1] else : n = notestart[a-1][b] dur_n = dur[a-1][b] fq_n = fq[a-1][b] amp_n = amp[a-1][b] phs_n = phs[a-1][b] pan_n = pan[a-1][b] if a == 4 : s = notestart[0][b] dur_s = dur[0][b] fq_s = fq[0][b] amp_s = amp[0][b] phs_s = phs[0][b] pan_s = pan[0][b] if b == 0 : sw = notestart[0][4] se = notestart[0][1] dur_sw = dur[0][4] dur_se = dur[0][1] fq_sw = fq[0][4] fq_se = fq[0][1] amp_sw = amp[0][4] amp_se = amp[0][1] phs_sw = phs[0][4] phs_se = phs[0][1] pan_sw = pan[0][4] pan_se = pan[0][1] else : sw = notestart[0][b-1] dur_sw = dur[0][b-1] fq_sw = fq[0][b-1] amp_sw = amp[0][b-1] phs_sw = phs[0][b-1] pan_sw = pan[0][b-1] if b == 4 : se = notestart[0][0] dur_se = dur[0][0] fq_se = fq[0][0] amp_se = amp[0][0] phs_se = phs[0][0] pan_se = pan[0][0] else : se = notestart[0][b+1] dur_se = dur[0][b+1] fq_se = fq[0][b+1] amp_se = amp[0][b+1] phs_se = phs[0][b+1] pan_se = pan[0][b+1] else : s = notestart[a+1][b] dur_s = dur[a+1][b] fq_s = fq[a+1][b] amp_s = amp[a+1][b] phs_s = phs[a+1][b] pan_s = pan[a+1][b] if b == 0 : sw = notestart[a+1][4] se = notestart[a+1][0] dur_sw = dur[a+1][4] dur_se = dur[a+1][0] fq_sw = fq[a+1][4] fq_se = fq[a+1][0] amp_sw = amp[a+1][4] amp_se = amp[a+1][0] phs_sw = phs[a+1][4] phs_se = phs[a+1][0] pan_sw = pan[a+1][4] pan_se = pan[a+1][0] else : sw = notestart[a+1][b-1] dur_sw = dur[a+1][b-1] fq_sw = fq[a+1][b-1] amp_sw = amp[a+1][b-1] phs_sw = phs[a+1][b-1] pan_sw = pan[a+1][b-1] if b == 4 : se = notestart[a+1][0] dur_se = dur[a+1][0] fq_se = fq[a+1][0] amp_se = amp[a+1][0] phs_se = phs[a+1][0] pan_se = pan[a+1][0] else : se = notestart[a+1][b+1] dur_se = dur[a+1][b+1] fq_se = fq[a+1][b+1] amp_se = amp[a+1][b+1] phs_se = phs[a+1][b+1] pan_se = pan[a+1][b+1] if b == 0 : nw = notestart[a-1][4] w = notestart[a][4] dur_nw = dur[a-1][4] dur_w = dur[a][4] fq_nw = fq[a-1][4] fq_w = fq[a][4] amp_nw = amp[a-1][4] amp_w = amp[a][4] phs_nw = phs[a-1][4] phs_w = phs[a][4] pan_nw = pan[a-1][4] pan_w = pan[a][4] else : nw = notestart[a-1][b-1] w = notestart[a][b-1] dur_nw = dur[a-1][b-1] dur_w = dur[a][b-1] fq_nw = fq[a-1][b-1] fq_w = fq[a][b-1] amp_nw = amp[a-1][b-1] amp_w = amp[a][b-1] phs_nw = phs[a-1][b-1] phs_w = phs[a][b-1] pan_nw = pan[a-1][b-1] pan_w = pan[a][b-1] if b == 4 : ne = notestart[a-1][0] e = notestart[a][0] dur_ne = dur[a-1][0] dur_e = dur[a][0] fq_ne = fq[a-1][0] fq_e = fq[a][0] amp_ne = amp[a-1][0] amp_e = amp[a][0] phs_ne = phs[a-1][0] phs_e = phs[a][0] pan_ne = pan[a-1][0] pan_e = pan[a][0] else : ne = notestart[a-1][b+1] e = notestart[a][b+1] dur_ne = dur[a-1][b+1] dur_e = dur[a][b+1] fq_ne = fq[a-1][b+1] fq_e = fq[a][b+1] amp_ne = amp[a-1][b+1] amp_e = amp[a][b+1] phs_ne = phs[a-1][b+1] phs_e = phs[a][b+1] pan_ne = pan[a-1][b+1] pan_e = pan[a][b+1] notestore[a][b] = notestart[a][b]*n*ne*e*se*s*sw*w*nw durt = (dur[a][b]+dur_n+dur_ne+dur_e+dur_se+dur_s+dur_sw+dur_w+dur_nw)*.3 if durt > 16 : durt = durt*.33 durstore[a][b] = durt fqt = (fq[a][b]+fq_n+fq_ne+fq_e+fq_se+fq_s+fq_sw+fq_w+fq_nw)*.3 if fqt > 24 : fqt = fqt%3.0 fqt = int(fqt) fqstore[a][b] = fqt ampt = (amp[a][b]+amp_n+amp_ne+amp_e+amp_se+amp_s+amp_sw+amp_w+amp_nw)*.12 if ampt > 40 : ampt = ampt-10 if ampt < 20 : ampt = ampt+10 ampstore[a][b] = ampt phst = (phs[a][b]+phs_n+phs_ne+phs_e+phs_se+phs_s+phs_sw+phs_w+phs_nw)*.3 if phst > 10 : phst = phst*.1 phsstore[a][b] = phst pant = (pan[a][b]+pan_n+pan_ne+pan_e+pan_se+pan_s+pan_sw+pan_w+pan_nw)*.3 if pant > 10 : pant = pant*.1 panstore[a][b] = pant dur = durstore notestart = notestore fq = fqstore amp = ampstore phs = phsstore pan = panstore score = scoreText 11.0 110.0 2h11TET-3 -16764366 2 from ScriptingUtils import * from math import * scoreText = '' notetime = 0 notestart = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] notestore = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] dur = [[1,1,13,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] durstore = [[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] fq = [[4.0,3.0,1.0,6.0,10.0],[5.0,11.0,9.0,11.0,9.0],[12.0,3.0,8.0,6.0,3.0],[4.0,4.0,12.0,4.0,7.0],[6.0,5.0,5.0,9.0,7.0]] fqstore = [[5.0,7.0,1.0,7.0,10.0],[2.0,11.0,5.0,11.0,9.0],[13.0,3.0,8.0,13.0,3.0],[4.0,4.0,12.0,4.0,4.0],[6.0,5.0,5.0,9.0,5.0]] amp = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] ampstore = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] phs = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] phsstore = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] pan = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] panstore = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] while notetime < blueDuration-2 : notetime = notetime + 1 for a in range(len(notestart)) : for b in range(len(notestart[a])) : if notestart[a][b]==1 : freq = pow(2.0,(fq[a][b]/11.0)) scoreText += "i1 "+str(notetime)+" "+str(dur[a][b])+" "+str(freq*100.0)+" "+str(-1*amp[a][b])+" "+str(.1*phs[a][b])+" "+str((.2*pan[a][b])-1)+" \n" for a in range(len(notestart)) : for b in range(len(notestart[a])) : if a == 0 : n = notestart[4][b] s = notestart[1][b] dur_n = dur[4][b] dur_s = dur[1][b] fq_n = fq[4][b] fq_s = fq[1][b] amp_n = amp[4][b] amp_s = amp[1][b] phs_n = phs[4][b] phs_s = phs[1][b] pan_n = pan[4][b] pan_s = pan[1][b] if b == 4 : ne = notestart[4][0] e = notestart[0][0] se = notestart[1][0] dur_ne = dur[4][0] dur_e = dur[0][0] dur_se = dur[1][0] fq_ne = fq[4][0] fq_e = fq[0][0] fq_se = fq[1][0] amp_ne = amp[4][0] amp_e = amp[0][0] amp_se = amp[1][0] phs_ne = phs[4][0] phs_e = phs[0][0] phs_se = phs[1][0] pan_ne = pan[4][0] pan_e = pan[0][0] pan_se = pan[1][0] else : ne = notestart[4][b+1] e = notestart[0][b+1] se = notestart[1][b+1] dur_ne = dur[4][b+1] dur_e = dur[0][b+1] dur_se = dur[1][b+1] fq_ne = fq[4][b+1] fq_e = fq[0][b+1] fq_se = fq[1][b+1] amp_ne = amp[4][b+1] amp_e = amp[0][b+1] amp_se = amp[1][b+1] phs_ne = phs[4][b+1] phs_e = phs[0][b+1] phs_se = phs[1][b+1] pan_ne = pan[4][b+1] pan_e = pan[0][b+1] pan_se = pan[1][b+1] if b == 0 : nw = notestart[4][4] w = notestart[0][4] sw = notestart[1][4] dur_nw = dur[4][4] dur_w = dur[0][4] dur_sw = dur[1][4] fq_nw = fq[4][4] fq_w = fq[0][4] fq_sw = fq[1][4] amp_nw = amp[4][4] amp_w = amp[0][4] amp_sw = amp[1][4] phs_nw = phs[4][4] phs_w = phs[0][4] phs_sw = phs[1][4] pan_nw = pan[4][4] pan_w = pan[0][4] pan_sw = pan[1][4] else : nw = notestart[4][b-1] w = notestart[0][b-1] sw = notestart[1][b-1] dur_nw = dur[4][b-1] dur_w = dur[0][b-1] dur_sw = dur[1][b-1] fq_nw = fq[4][b-1] fq_w = fq[0][b-1] fq_sw = fq[1][b-1] amp_nw = amp[4][b-1] amp_w = amp[0][b-1] amp_sw = amp[1][b-1] phs_nw = phs[4][b-1] phs_w = phs[0][b-1] phs_sw = phs[1][b-1] pan_nw = pan[4][b-1] pan_w = pan[0][b-1] pan_sw = pan[1][b-1] else : n = notestart[a-1][b] dur_n = dur[a-1][b] fq_n = fq[a-1][b] amp_n = amp[a-1][b] phs_n = phs[a-1][b] pan_n = pan[a-1][b] if a == 4 : s = notestart[0][b] dur_s = dur[0][b] fq_s = fq[0][b] amp_s = amp[0][b] phs_s = phs[0][b] pan_s = pan[0][b] if b == 0 : sw = notestart[0][4] se = notestart[0][1] dur_sw = dur[0][4] dur_se = dur[0][1] fq_sw = fq[0][4] fq_se = fq[0][1] amp_sw = amp[0][4] amp_se = amp[0][1] phs_sw = phs[0][4] phs_se = phs[0][1] pan_sw = pan[0][4] pan_se = pan[0][1] else : sw = notestart[0][b-1] dur_sw = dur[0][b-1] fq_sw = fq[0][b-1] amp_sw = amp[0][b-1] phs_sw = phs[0][b-1] pan_sw = pan[0][b-1] if b == 4 : se = notestart[0][0] dur_se = dur[0][0] fq_se = fq[0][0] amp_se = amp[0][0] phs_se = phs[0][0] pan_se = pan[0][0] else : se = notestart[0][b+1] dur_se = dur[0][b+1] fq_se = fq[0][b+1] amp_se = amp[0][b+1] phs_se = phs[0][b+1] pan_se = pan[0][b+1] else : s = notestart[a+1][b] dur_s = dur[a+1][b] fq_s = fq[a+1][b] amp_s = amp[a+1][b] phs_s = phs[a+1][b] pan_s = pan[a+1][b] if b == 0 : sw = notestart[a+1][4] se = notestart[a+1][0] dur_sw = dur[a+1][4] dur_se = dur[a+1][0] fq_sw = fq[a+1][4] fq_se = fq[a+1][0] amp_sw = amp[a+1][4] amp_se = amp[a+1][0] phs_sw = phs[a+1][4] phs_se = phs[a+1][0] pan_sw = pan[a+1][4] pan_se = pan[a+1][0] else : sw = notestart[a+1][b-1] dur_sw = dur[a+1][b-1] fq_sw = fq[a+1][b-1] amp_sw = amp[a+1][b-1] phs_sw = phs[a+1][b-1] pan_sw = pan[a+1][b-1] if b == 4 : se = notestart[a+1][0] dur_se = dur[a+1][0] fq_se = fq[a+1][0] amp_se = amp[a+1][0] phs_se = phs[a+1][0] pan_se = pan[a+1][0] else : se = notestart[a+1][b+1] dur_se = dur[a+1][b+1] fq_se = fq[a+1][b+1] amp_se = amp[a+1][b+1] phs_se = phs[a+1][b+1] pan_se = pan[a+1][b+1] if b == 0 : nw = notestart[a-1][4] w = notestart[a][4] dur_nw = dur[a-1][4] dur_w = dur[a][4] fq_nw = fq[a-1][4] fq_w = fq[a][4] amp_nw = amp[a-1][4] amp_w = amp[a][4] phs_nw = phs[a-1][4] phs_w = phs[a][4] pan_nw = pan[a-1][4] pan_w = pan[a][4] else : nw = notestart[a-1][b-1] w = notestart[a][b-1] dur_nw = dur[a-1][b-1] dur_w = dur[a][b-1] fq_nw = fq[a-1][b-1] fq_w = fq[a][b-1] amp_nw = amp[a-1][b-1] amp_w = amp[a][b-1] phs_nw = phs[a-1][b-1] phs_w = phs[a][b-1] pan_nw = pan[a-1][b-1] pan_w = pan[a][b-1] if b == 4 : ne = notestart[a-1][0] e = notestart[a][0] dur_ne = dur[a-1][0] dur_e = dur[a][0] fq_ne = fq[a-1][0] fq_e = fq[a][0] amp_ne = amp[a-1][0] amp_e = amp[a][0] phs_ne = phs[a-1][0] phs_e = phs[a][0] pan_ne = pan[a-1][0] pan_e = pan[a][0] else : ne = notestart[a-1][b+1] e = notestart[a][b+1] dur_ne = dur[a-1][b+1] dur_e = dur[a][b+1] fq_ne = fq[a-1][b+1] fq_e = fq[a][b+1] amp_ne = amp[a-1][b+1] amp_e = amp[a][b+1] phs_ne = phs[a-1][b+1] phs_e = phs[a][b+1] pan_ne = pan[a-1][b+1] pan_e = pan[a][b+1] notestore[a][b] = notestart[a][b]*n*ne*e*se*s*sw*w*nw durt = (dur[a][b]+dur_n+dur_ne+dur_e+dur_se+dur_s+dur_sw+dur_w+dur_nw)*.3 if durt > 16 : durt = durt*.33 durstore[a][b] = durt fqt = (fq[a][b]+fq_n+fq_ne+fq_e+fq_se+fq_s+fq_sw+fq_w+fq_nw)*.3 if fqt > 24 : fqt = fqt%3.0 fqt = int(fqt) fqstore[a][b] = fqt ampt = (amp[a][b]+amp_n+amp_ne+amp_e+amp_se+amp_s+amp_sw+amp_w+amp_nw)*.12 if ampt > 40 : ampt = ampt-10 if ampt < 20 : ampt = ampt+10 ampstore[a][b] = ampt phst = (phs[a][b]+phs_n+phs_ne+phs_e+phs_se+phs_s+phs_sw+phs_w+phs_nw)*.3 if phst > 10 : phst = phst*.1 phsstore[a][b] = phst pant = (pan[a][b]+pan_n+pan_ne+pan_e+pan_se+pan_s+pan_sw+pan_w+pan_nw)*.3 if pant > 10 : pant = pant*.1 panstore[a][b] = pant dur = durstore notestart = notestore fq = fqstore amp = ampstore phs = phsstore pan = panstore score = scoreText 11.0 121.0 2h13TET-3 -13500366 2 from ScriptingUtils import * from math import * scoreText = '' notetime = 0 notestart = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] notestore = [[-1,1,-1,1,-1],[1,1,-1,-1,1],[1,1,-1,1,-1],[-1,-1,-1,1,-1],[-1,-1,1,-1,-1]] dur = [[1,1,13,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] durstore = [[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4],[5,5,5,5,5]] fq = [[4.0,7.0,13.0,9.0,12.0],[12.0,11.0,9.0,1.0,9.0],[8.0,3.0,0.0,1.0,3.0],[12.0,4.0,1.0,9.0,4.0],[6.0,7.0,7.0,9.0,5.0]] fqstore = [[14.0,7.0,1.0,7.0,10.0],[2.0,11.0,2.0,11.0,9.0],[3.0,3.0,8.0,13.0,3.0],[4.0,4.0,12.0,4.0,4.0],[6.0,5.0,5.0,9.0,5.0]] amp = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] ampstore = [[40,40,40,40,40],[38,38,38,38,38],[36,36,36,36,36],[34,34,34,34,34],[32,32,32,32,32]] phs = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] phsstore = [[0,0,0,0,0],[1,1,1,1,1],[2,2,2,2,2],[3,3,3,3,3],[4,4,4,4,4]] pan = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] panstore = [[0,1,0,1,0],[0,1,1,1,1],[0,1,0,1,1],[0,0,1,0,0],[0,1,1,0,0]] while notetime < blueDuration-2 : notetime = notetime + 1 for a in range(len(notestart)) : for b in range(len(notestart[a])) : if notestart[a][b]==1 : freq = pow(2.0,(fq[a][b]/13.0)) scoreText += "i1 "+str(notetime)+" "+str(dur[a][b])+" "+str(freq*100.0)+" "+str(-1*amp[a][b])+" "+str(.1*phs[a][b])+" "+str((.2*pan[a][b])-1)+" \n" for a in range(len(notestart)) : for b in range(len(notestart[a])) : if a == 0 : n = notestart[4][b] s = notestart[1][b] dur_n = dur[4][b] dur_s = dur[1][b] fq_n = fq[4][b] fq_s = fq[1][b] amp_n = amp[4][b] amp_s = amp[1][b] phs_n = phs[4][b] phs_s = phs[1][b] pan_n = pan[4][b] pan_s = pan[1][b] if b == 4 : ne = notestart[4][0] e = notestart[0][0] se = notestart[1][0] dur_ne = dur[4][0] dur_e = dur[0][0] dur_se = dur[1][0] fq_ne = fq[4][0] fq_e = fq[0][0] fq_se = fq[1][0] amp_ne = amp[4][0] amp_e = amp[0][0] amp_se = amp[1][0] phs_ne = phs[4][0] phs_e = phs[0][0] phs_se = phs[1][0] pan_ne = pan[4][0] pan_e = pan[0][0] pan_se = pan[1][0] else : ne = notestart[4][b+1] e = notestart[0][b+1] se = notestart[1][b+1] dur_ne = dur[4][b+1] dur_e = dur[0][b+1] dur_se = dur[1][b+1] fq_ne = fq[4][b+1] fq_e = fq[0][b+1] fq_se = fq[1][b+1] amp_ne = amp[4][b+1] amp_e = amp[0][b+1] amp_se = amp[1][b+1] phs_ne = phs[4][b+1] phs_e = phs[0][b+1] phs_se = phs[1][b+1] pan_ne = pan[4][b+1] pan_e = pan[0][b+1] pan_se = pan[1][b+1] if b == 0 : nw = notestart[4][4] w = notestart[0][4] sw = notestart[1][4] dur_nw = dur[4][4] dur_w = dur[0][4] dur_sw = dur[1][4] fq_nw = fq[4][4] fq_w = fq[0][4] fq_sw = fq[1][4] amp_nw = amp[4][4] amp_w = amp[0][4] amp_sw = amp[1][4] phs_nw = phs[4][4] phs_w = phs[0][4] phs_sw = phs[1][4] pan_nw = pan[4][4] pan_w = pan[0][4] pan_sw = pan[1][4] else : nw = notestart[4][b-1] w = notestart[0][b-1] sw = notestart[1][b-1] dur_nw = dur[4][b-1] dur_w = dur[0][b-1] dur_sw = dur[1][b-1] fq_nw = fq[4][b-1] fq_w = fq[0][b-1] fq_sw = fq[1][b-1] amp_nw = amp[4][b-1] amp_w = amp[0][b-1] amp_sw = amp[1][b-1] phs_nw = phs[4][b-1] phs_w = phs[0][b-1] phs_sw = phs[1][b-1] pan_nw = pan[4][b-1] pan_w = pan[0][b-1] pan_sw = pan[1][b-1] else : n = notestart[a-1][b] dur_n = dur[a-1][b] fq_n = fq[a-1][b] amp_n = amp[a-1][b] phs_n = phs[a-1][b] pan_n = pan[a-1][b] if a == 4 : s = notestart[0][b] dur_s = dur[0][b] fq_s = fq[0][b] amp_s = amp[0][b] phs_s = phs[0][b] pan_s = pan[0][b] if b == 0 : sw = notestart[0][4] se = notestart[0][1] dur_sw = dur[0][4] dur_se = dur[0][1] fq_sw = fq[0][4] fq_se = fq[0][1] amp_sw = amp[0][4] amp_se = amp[0][1] phs_sw = phs[0][4] phs_se = phs[0][1] pan_sw = pan[0][4] pan_se = pan[0][1] else : sw = notestart[0][b-1] dur_sw = dur[0][b-1] fq_sw = fq[0][b-1] amp_sw = amp[0][b-1] phs_sw = phs[0][b-1] pan_sw = pan[0][b-1] if b == 4 : se = notestart[0][0] dur_se = dur[0][0] fq_se = fq[0][0] amp_se = amp[0][0] phs_se = phs[0][0] pan_se = pan[0][0] else : se = notestart[0][b+1] dur_se = dur[0][b+1] fq_se = fq[0][b+1] amp_se = amp[0][b+1] phs_se = phs[0][b+1] pan_se = pan[0][b+1] else : s = notestart[a+1][b] dur_s = dur[a+1][b] fq_s = fq[a+1][b] amp_s = amp[a+1][b] phs_s = phs[a+1][b] pan_s = pan[a+1][b] if b == 0 : sw = notestart[a+1][4] se = notestart[a+1][0] dur_sw = dur[a+1][4] dur_se = dur[a+1][0] fq_sw = fq[a+1][4] fq_se = fq[a+1][0] amp_sw = amp[a+1][4] amp_se = amp[a+1][0] phs_sw = phs[a+1][4] phs_se = phs[a+1][0] pan_sw = pan[a+1][4] pan_se = pan[a+1][0] else : sw = notestart[a+1][b-1] dur_sw = dur[a+1][b-1] fq_sw = fq[a+1][b-1] amp_sw = amp[a+1][b-1] phs_sw = phs[a+1][b-1] pan_sw = pan[a+1][b-1] if b == 4 : se = notestart[a+1][0] dur_se = dur[a+1][0] fq_se = fq[a+1][0] amp_se = amp[a+1][0] phs_se = phs[a+1][0] pan_se = pan[a+1][0] else : se = notestart[a+1][b+1] dur_se = dur[a+1][b+1] fq_se = fq[a+1][b+1] amp_se = amp[a+1][b+1] phs_se = phs[a+1][b+1] pan_se = pan[a+1][b+1] if b == 0 : nw = notestart[a-1][4] w = notestart[a][4] dur_nw = dur[a-1][4] dur_w = dur[a][4] fq_nw = fq[a-1][4] fq_w = fq[a][4] amp_nw = amp[a-1][4] amp_w = amp[a][4] phs_nw = phs[a-1][4] phs_w = phs[a][4] pan_nw = pan[a-1][4] pan_w = pan[a][4] else : nw = notestart[a-1][b-1] w = notestart[a][b-1] dur_nw = dur[a-1][b-1] dur_w = dur[a][b-1] fq_nw = fq[a-1][b-1] fq_w = fq[a][b-1] amp_nw = amp[a-1][b-1] amp_w = amp[a][b-1] phs_nw = phs[a-1][b-1] phs_w = phs[a][b-1] pan_nw = pan[a-1][b-1] pan_w = pan[a][b-1] if b == 4 : ne = notestart[a-1][0] e = notestart[a][0] dur_ne = dur[a-1][0] dur_e = dur[a][0] fq_ne = fq[a-1][0] fq_e = fq[a][0] amp_ne = amp[a-1][0] amp_e = amp[a][0] phs_ne = phs[a-1][0] phs_e = phs[a][0] pan_ne = pan[a-1][0] pan_e = pan[a][0] else : ne = notestart[a-1][b+1] e = notestart[a][b+1] dur_ne = dur[a-1][b+1] dur_e = dur[a][b+1] fq_ne = fq[a-1][b+1] fq_e = fq[a][b+1] amp_ne = amp[a-1][b+1] amp_e = amp[a][b+1] phs_ne = phs[a-1][b+1] phs_e = phs[a][b+1] pan_ne = pan[a-1][b+1] pan_e = pan[a][b+1] notestore[a][b] = notestart[a][b]*n*ne*e*se*s*sw*w*nw durt = (dur[a][b]+dur_n+dur_ne+dur_e+dur_se+dur_s+dur_sw+dur_w+dur_nw)*.3 if durt > 16 : durt = durt*.33 durstore[a][b] = durt fqt = (fq[a][b]+fq_n+fq_ne+fq_e+fq_se+fq_s+fq_sw+fq_w+fq_nw)*.3 if fqt > 24 : fqt = fqt%3.0 fqt = int(fqt) fqstore[a][b] = fqt ampt = (amp[a][b]+amp_n+amp_ne+amp_e+amp_se+amp_s+amp_sw+amp_w+amp_nw)*.12 if ampt > 40 : ampt = ampt-10 if ampt < 20 : ampt = ampt+10 ampstore[a][b] = ampt phst = (phs[a][b]+phs_n+phs_ne+phs_e+phs_se+phs_s+phs_sw+phs_w+phs_nw)*.3 if phst > 10 : phst = phst*.1 phsstore[a][b] = phst pant = (pan[a][b]+pan_n+pan_ne+pan_e+pan_se+pan_s+pan_sw+pan_w+pan_nw)*.3 if pant > 10 : pant = pant*.1 panstore[a][b] = pant dur = durstore notestart = notestore fq = fqstore amp = ampstore phs = phsstore pan = panstore score = scoreText 5.0 54.0 Phad11/13-0 -10197916 2 scoreText_0 = "" # scoreText_0 is cleared bart_0 = 5.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_0 = ['caYWU','bZXVT','aYbYa','TVXZb','UWYac'] # rhythm bpb_0 = len(rhythmr0_0) # beats per bar beat_0 = bart_0/bpb_0 # time of beat in seconds notetime_0 = 0 # set intitial note start time durlist_0 = [1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7] # note duration list notelist_0 = [57,59,56,53,50,56,58,55,52,49,55,57,54,51,48,54,56,53,50,47,53,55,54,55,56] # note list splist_0 = [1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2] # subpatch panalist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # pana list panblist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # panb list attmlist_0 = [.01,.02,.01,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.03,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.01,.02,.01] # attack time list atcvlist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_0 = [4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4] # amplitude envelope curve a list i_0 = 0 # loop iteration counter c_0 = 0 # note iteration counter while i_0 < 1 : # loop until end of soundObject for a_0 in range(bpb_0) : # loop through the items in the rhythm list sb_0 = rhythmr0_0[a_0] # sb is current item in the rhythm list subeat_0 = beat_0/len(sb_0) # subeat is the number of sub-beats in the beat for b_0 in range(len(sb_0)) : # loop through the items in the beat string if sb_0[b_0].isalnum() : # check if character is alphanumeric asky = ord(sb_0[b_0]) # get ascii number of the character if sb_0[b_0].isdigit() : # check if character is numeric amp_0 = (asky-47) # assign amplitude elif sb_0[b_0].isupper() : # check if character is uppercase amp_0 = (asky-54) # assign amplitude else : # else character must be lowercase amp_0 = (asky-60) # assign amplitude elif sb_0[b_0] == '-' : amp_0 = -90 # character for amp = 0 elif sb_0[b_0] == '>' : amp_0 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_0 = blueDuration + 1 # set notetime_0 > blueduration scoreText_0 = '' # clear scoreText_0 if notetime_0 >= blueDuration : break # break out of the loop if amp_0 > 0 : # if note exists (amplitude > 0) dur_0 = durlist_0[c_0] # get duration from durlist amp_0 = (amp_0*1.6)-89 # move amp value to correct dbfs range (max=1) note_0 = notelist_0[c_0] # get note from notelist sp_0 = splist_0[c_0] # get sp from splist pana_0 = panalist_0[c_0] # get pana from panalist panb_0 = panblist_0[c_0] # get panb from panblist attm_0 = attmlist_0[c_0] # get attm from attmlist atcv_0 = atcvlist_0[c_0] # get atcv from atcvlist nvpa_0 = nvpalist_0[c_0] # get nvpa from nvpalist nvca_0 = nvcalist_0[c_0] # get nvca from nvcalist c_0 = c_0 + 1 # note iterator variable scoreText_0 += "i2 "+str(notetime_0)+" "+str(dur_0)+" "+str(note_0)+" "+str(amp_0)+" "+str(sp_0)+" "+str(pana_0)+" "+str(panb_0)+" "+str(attm_0)+" "+str(atcv_0)+" "+str(nvpa_0)+" "+str(nvca_0)+" \n" notetime_0 = notetime_0 + subeat_0 # increment notetime by subeat time value i_0 = i_0 + 1 # loop iterator increment c_0 = 0 # note iterator reset score = scoreText_0 # score output 5.0 59.0 Phad13-0 -10223516 2 scoreText_0 = "" # scoreText_0 is cleared bart_0 = 5.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_0 = ['caYWU','bZXVT','aYbYa','TVXZb','UWYac'] # rhythm bpb_0 = len(rhythmr0_0) # beats per bar beat_0 = bart_0/bpb_0 # time of beat in seconds notetime_0 = 0 # set intitial note start time durlist_0 = [1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7] # note duration list notelist_0 = [57,59,56,53,50, 56,58,55,52,49, 55,57,54,51,48,54,56,53,50,47,53,55,54,55,56] # note list splist_0 = [2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2] # subpatch panalist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # pana list panblist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # panb list attmlist_0 = [.01,.02,.01,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.03,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.01,.02,.01] # attack time list atcvlist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_0 = [4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4] # amplitude envelope curve a list i_0 = 0 # loop iteration counter c_0 = 0 # note iteration counter while i_0 < 1 : # loop until end of soundObject for a_0 in range(bpb_0) : # loop through the items in the rhythm list sb_0 = rhythmr0_0[a_0] # sb is current item in the rhythm list subeat_0 = beat_0/len(sb_0) # subeat is the number of sub-beats in the beat for b_0 in range(len(sb_0)) : # loop through the items in the beat string if sb_0[b_0].isalnum() : # check if character is alphanumeric asky = ord(sb_0[b_0]) # get ascii number of the character if sb_0[b_0].isdigit() : # check if character is numeric amp_0 = (asky-47) # assign amplitude elif sb_0[b_0].isupper() : # check if character is uppercase amp_0 = (asky-54) # assign amplitude else : # else character must be lowercase amp_0 = (asky-60) # assign amplitude elif sb_0[b_0] == '-' : amp_0 = -90 # character for amp = 0 elif sb_0[b_0] == '>' : amp_0 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_0 = blueDuration + 1 # set notetime_0 > blueduration scoreText_0 = '' # clear scoreText_0 if notetime_0 >= blueDuration : break # break out of the loop if amp_0 > 0 : # if note exists (amplitude > 0) dur_0 = durlist_0[c_0] # get duration from durlist amp_0 = (amp_0*1.6)-89 # move amp value to correct dbfs range (max=1) note_0 = notelist_0[c_0] # get note from notelist sp_0 = splist_0[c_0] # get sp from splist pana_0 = panalist_0[c_0] # get pana from panalist panb_0 = panblist_0[c_0] # get panb from panblist attm_0 = attmlist_0[c_0] # get attm from attmlist atcv_0 = atcvlist_0[c_0] # get atcv from atcvlist nvpa_0 = nvpalist_0[c_0] # get nvpa from nvpalist nvca_0 = nvcalist_0[c_0] # get nvca from nvcalist c_0 = c_0 + 1 # note iterator variable scoreText_0 += "i2 "+str(notetime_0)+" "+str(dur_0)+" "+str(note_0)+" "+str(amp_0)+" "+str(sp_0)+" "+str(pana_0)+" "+str(panb_0)+" "+str(attm_0)+" "+str(atcv_0)+" "+str(nvpa_0)+" "+str(nvca_0)+" \n" notetime_0 = notetime_0 + subeat_0 # increment notetime by subeat time value i_0 = i_0 + 1 # loop iterator increment c_0 = 0 # note iterator reset score = scoreText_0 # score output 5.0 64.0 Phad13/12-0 -10197916 2 scoreText_0 = "" # scoreText_0 is cleared bart_0 = 5.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_0 = ['caYWU','bZXVT','aYbYa','TVXZb','UWYac'] # rhythm bpb_0 = len(rhythmr0_0) # beats per bar beat_0 = bart_0/bpb_0 # time of beat in seconds notetime_0 = 0 # set intitial note start time durlist_0 = [1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7] # note duration list notelist_0 = [57,59,56,53,50,56,58,55,52,49,55,57,54,51,48,54,56,53,51,48,53,54,55,56,57] # note list splist_0 = [2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # subpatch panalist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # pana list panblist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # panb list attmlist_0 = [.01,.02,.01,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.03,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.01,.02,.01] # attack time list atcvlist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_0 = [4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4] # amplitude envelope curve a list i_0 = 0 # loop iteration counter c_0 = 0 # note iteration counter while i_0 < 1 : # loop until end of soundObject for a_0 in range(bpb_0) : # loop through the items in the rhythm list sb_0 = rhythmr0_0[a_0] # sb is current item in the rhythm list subeat_0 = beat_0/len(sb_0) # subeat is the number of sub-beats in the beat for b_0 in range(len(sb_0)) : # loop through the items in the beat string if sb_0[b_0].isalnum() : # check if character is alphanumeric asky = ord(sb_0[b_0]) # get ascii number of the character if sb_0[b_0].isdigit() : # check if character is numeric amp_0 = (asky-47) # assign amplitude elif sb_0[b_0].isupper() : # check if character is uppercase amp_0 = (asky-54) # assign amplitude else : # else character must be lowercase amp_0 = (asky-60) # assign amplitude elif sb_0[b_0] == '-' : amp_0 = -90 # character for amp = 0 elif sb_0[b_0] == '>' : amp_0 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_0 = blueDuration + 1 # set notetime_0 > blueduration scoreText_0 = '' # clear scoreText_0 if notetime_0 >= blueDuration : break # break out of the loop if amp_0 > 0 : # if note exists (amplitude > 0) dur_0 = durlist_0[c_0] # get duration from durlist amp_0 = (amp_0*1.6)-89 # move amp value to correct dbfs range (max=1) note_0 = notelist_0[c_0] # get note from notelist sp_0 = splist_0[c_0] # get sp from splist pana_0 = panalist_0[c_0] # get pana from panalist panb_0 = panblist_0[c_0] # get panb from panblist attm_0 = attmlist_0[c_0] # get attm from attmlist atcv_0 = atcvlist_0[c_0] # get atcv from atcvlist nvpa_0 = nvpalist_0[c_0] # get nvpa from nvpalist nvca_0 = nvcalist_0[c_0] # get nvca from nvcalist c_0 = c_0 + 1 # note iterator variable scoreText_0 += "i2 "+str(notetime_0)+" "+str(dur_0)+" "+str(note_0)+" "+str(amp_0)+" "+str(sp_0)+" "+str(pana_0)+" "+str(panb_0)+" "+str(attm_0)+" "+str(atcv_0)+" "+str(nvpa_0)+" "+str(nvca_0)+" \n" notetime_0 = notetime_0 + subeat_0 # increment notetime by subeat time value i_0 = i_0 + 1 # loop iterator increment c_0 = 0 # note iterator reset score = scoreText_0 # score output 5.0 69.0 Phad12-1 -10198016 2 scoreText_0 = "" # scoreText_0 is cleared bart_0 = 5.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_0 = ['caYWU','bZXVT','aYbYa','TVXZb','UWYac'] # rhythm bpb_0 = len(rhythmr0_0) # beats per bar beat_0 = bart_0/bpb_0 # time of beat in seconds notetime_0 = 0 # set intitial note start time durlist_0 = [1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7] # note duration list notelist_0 = [58,60,57,54,51, 57,59,56,53,50, 56,58,55,52,49, 55,57,54,52,49,54,55,56,57,58] # note list splist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # subpatch panalist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # pana list panblist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # panb list attmlist_0 = [.01,.02,.01,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.03,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.01,.02,.01] # attack time list atcvlist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_0 = [4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4] # amplitude envelope curve a list i_0 = 0 # loop iteration counter c_0 = 0 # note iteration counter while i_0 < 1 : # loop until end of soundObject for a_0 in range(bpb_0) : # loop through the items in the rhythm list sb_0 = rhythmr0_0[a_0] # sb is current item in the rhythm list subeat_0 = beat_0/len(sb_0) # subeat is the number of sub-beats in the beat for b_0 in range(len(sb_0)) : # loop through the items in the beat string if sb_0[b_0].isalnum() : # check if character is alphanumeric asky = ord(sb_0[b_0]) # get ascii number of the character if sb_0[b_0].isdigit() : # check if character is numeric amp_0 = (asky-47) # assign amplitude elif sb_0[b_0].isupper() : # check if character is uppercase amp_0 = (asky-54) # assign amplitude else : # else character must be lowercase amp_0 = (asky-60) # assign amplitude elif sb_0[b_0] == '-' : amp_0 = -90 # character for amp = 0 elif sb_0[b_0] == '>' : amp_0 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_0 = blueDuration + 1 # set notetime_0 > blueduration scoreText_0 = '' # clear scoreText_0 if notetime_0 >= blueDuration : break # break out of the loop if amp_0 > 0 : # if note exists (amplitude > 0) dur_0 = durlist_0[c_0] # get duration from durlist amp_0 = (amp_0*1.6)-89 # move amp value to correct dbfs range (max=1) note_0 = notelist_0[c_0] # get note from notelist sp_0 = splist_0[c_0] # get sp from splist pana_0 = panalist_0[c_0] # get pana from panalist panb_0 = panblist_0[c_0] # get panb from panblist attm_0 = attmlist_0[c_0] # get attm from attmlist atcv_0 = atcvlist_0[c_0] # get atcv from atcvlist nvpa_0 = nvpalist_0[c_0] # get nvpa from nvpalist nvca_0 = nvcalist_0[c_0] # get nvca from nvcalist c_0 = c_0 + 1 # note iterator variable scoreText_0 += "i2 "+str(notetime_0)+" "+str(dur_0)+" "+str(note_0)+" "+str(amp_0)+" "+str(sp_0)+" "+str(pana_0)+" "+str(panb_0)+" "+str(attm_0)+" "+str(atcv_0)+" "+str(nvpa_0)+" "+str(nvca_0)+" \n" notetime_0 = notetime_0 + subeat_0 # increment notetime by subeat time value i_0 = i_0 + 1 # loop iterator increment c_0 = 0 # note iterator reset score = scoreText_0 # score output 5.0 49.0 Phad11-0 -16751516 2 scoreText_0 = "" # scoreText_0 is cleared bart_0 = 5.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_0 = ['TSRQP','WVUTS','ZYXWV','cbaZY','dcbaZ'] # rhythm bpb_0 = len(rhythmr0_0) # beats per bar beat_0 = bart_0/bpb_0 # time of beat in seconds notetime_0 = 0 # set intitial note start time durlist_0 = [1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7] # note duration list notelist_0 = [57,59,56,53,50, 56,58,55,52,49, 55,57,54,51,48, 54,56,53,50,47, 53,55,54,55,56] # note list splist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # subpatch panalist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # pana list panblist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # panb list attmlist_0 = [.01,.02,.01,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.03,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.01,.02,.01] # attack time list atcvlist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_0 = [4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4] # amplitude envelope curve a list i_0 = 0 # loop iteration counter c_0 = 0 # note iteration counter while i_0 < 1 : # loop until end of soundObject for a_0 in range(bpb_0) : # loop through the items in the rhythm list sb_0 = rhythmr0_0[a_0] # sb is current item in the rhythm list subeat_0 = beat_0/len(sb_0) # subeat is the number of sub-beats in the beat for b_0 in range(len(sb_0)) : # loop through the items in the beat string if sb_0[b_0].isalnum() : # check if character is alphanumeric asky = ord(sb_0[b_0]) # get ascii number of the character if sb_0[b_0].isdigit() : # check if character is numeric amp_0 = (asky-47) # assign amplitude elif sb_0[b_0].isupper() : # check if character is uppercase amp_0 = (asky-54) # assign amplitude else : # else character must be lowercase amp_0 = (asky-60) # assign amplitude elif sb_0[b_0] == '-' : amp_0 = -90 # character for amp = 0 elif sb_0[b_0] == '>' : amp_0 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_0 = blueDuration + 1 # set notetime_0 > blueduration scoreText_0 = '' # clear scoreText_0 if notetime_0 >= blueDuration : break # break out of the loop if amp_0 > 0 : # if note exists (amplitude > 0) dur_0 = durlist_0[c_0] # get duration from durlist amp_0 = (amp_0*1.6)-89 # move amp value to correct dbfs range (max=1) note_0 = notelist_0[c_0] # get note from notelist sp_0 = splist_0[c_0] # get sp from splist pana_0 = panalist_0[c_0] # get pana from panalist panb_0 = panblist_0[c_0] # get panb from panblist attm_0 = attmlist_0[c_0] # get attm from attmlist atcv_0 = atcvlist_0[c_0] # get atcv from atcvlist nvpa_0 = nvpalist_0[c_0] # get nvpa from nvpalist nvca_0 = nvcalist_0[c_0] # get nvca from nvcalist c_0 = c_0 + 1 # note iterator variable scoreText_0 += "i2 "+str(notetime_0)+" "+str(dur_0)+" "+str(note_0)+" "+str(amp_0)+" "+str(sp_0)+" "+str(pana_0)+" "+str(panb_0)+" "+str(attm_0)+" "+str(atcv_0)+" "+str(nvpa_0)+" "+str(nvca_0)+" \n" notetime_0 = notetime_0 + subeat_0 # increment notetime by subeat time value i_0 = i_0 + 1 # loop iterator increment c_0 = 0 # note iterator reset score = scoreText_0 # score output 5.0 74.0 Phad12/11-0 -10197916 2 scoreText_0 = "" # scoreText_0 is cleared bart_0 = 5.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_0 = ['caYWU','bZXVT','aYbYa','TVXZb','UWYac'] # rhythm bpb_0 = len(rhythmr0_0) # beats per bar beat_0 = bart_0/bpb_0 # time of beat in seconds notetime_0 = 0 # set intitial note start time durlist_0 = [1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7] # note duration list notelist_0 = [59,61,58,55,52,58,60,57,54,51,57,59,56,53,50,56,58,55,53,50,55,56,57,58,59] # note list splist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1] # subpatch panalist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # pana list panblist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # panb list attmlist_0 = [.01,.02,.01,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.03,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.01,.02,.01] # attack time list atcvlist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_0 = [4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4] # amplitude envelope curve a list i_0 = 0 # loop iteration counter c_0 = 0 # note iteration counter while i_0 < 1 : # loop until end of soundObject for a_0 in range(bpb_0) : # loop through the items in the rhythm list sb_0 = rhythmr0_0[a_0] # sb is current item in the rhythm list subeat_0 = beat_0/len(sb_0) # subeat is the number of sub-beats in the beat for b_0 in range(len(sb_0)) : # loop through the items in the beat string if sb_0[b_0].isalnum() : # check if character is alphanumeric asky = ord(sb_0[b_0]) # get ascii number of the character if sb_0[b_0].isdigit() : # check if character is numeric amp_0 = (asky-47) # assign amplitude elif sb_0[b_0].isupper() : # check if character is uppercase amp_0 = (asky-54) # assign amplitude else : # else character must be lowercase amp_0 = (asky-60) # assign amplitude elif sb_0[b_0] == '-' : amp_0 = -90 # character for amp = 0 elif sb_0[b_0] == '>' : amp_0 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_0 = blueDuration + 1 # set notetime_0 > blueduration scoreText_0 = '' # clear scoreText_0 if notetime_0 >= blueDuration : break # break out of the loop if amp_0 > 0 : # if note exists (amplitude > 0) dur_0 = durlist_0[c_0] # get duration from durlist amp_0 = (amp_0*1.6)-89 # move amp value to correct dbfs range (max=1) note_0 = notelist_0[c_0] # get note from notelist sp_0 = splist_0[c_0] # get sp from splist pana_0 = panalist_0[c_0] # get pana from panalist panb_0 = panblist_0[c_0] # get panb from panblist attm_0 = attmlist_0[c_0] # get attm from attmlist atcv_0 = atcvlist_0[c_0] # get atcv from atcvlist nvpa_0 = nvpalist_0[c_0] # get nvpa from nvpalist nvca_0 = nvcalist_0[c_0] # get nvca from nvcalist c_0 = c_0 + 1 # note iterator variable scoreText_0 += "i2 "+str(notetime_0)+" "+str(dur_0)+" "+str(note_0)+" "+str(amp_0)+" "+str(sp_0)+" "+str(pana_0)+" "+str(panb_0)+" "+str(attm_0)+" "+str(atcv_0)+" "+str(nvpa_0)+" "+str(nvca_0)+" \n" notetime_0 = notetime_0 + subeat_0 # increment notetime by subeat time value i_0 = i_0 + 1 # loop iterator increment c_0 = 0 # note iterator reset score = scoreText_0 # score output 5.0 79.0 Phad11-1 -16751516 2 scoreText_0 = "" # scoreText_0 is cleared bart_0 = 5.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_0 = ['caYWU','bZXVT','aYbYa','TVXZb','UWYac'] # rhythm bpb_0 = len(rhythmr0_0) # beats per bar beat_0 = bart_0/bpb_0 # time of beat in seconds notetime_0 = 0 # set intitial note start time durlist_0 = [1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7] # note duration list notelist_0 = [60,62,59,56,53, 59,61,58,55,52, 58,60,57,54,51, 57,59,56,54,51, 56,57,58,59,60] # note list splist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # subpatch panalist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # pana list panblist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # panb list attmlist_0 = [.01,.02,.01,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.03,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.01,.02,.01] # attack time list atcvlist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_0 = [4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4] # amplitude envelope curve a list i_0 = 0 # loop iteration counter c_0 = 0 # note iteration counter while i_0 < 1 : # loop until end of soundObject for a_0 in range(bpb_0) : # loop through the items in the rhythm list sb_0 = rhythmr0_0[a_0] # sb is current item in the rhythm list subeat_0 = beat_0/len(sb_0) # subeat is the number of sub-beats in the beat for b_0 in range(len(sb_0)) : # loop through the items in the beat string if sb_0[b_0].isalnum() : # check if character is alphanumeric asky = ord(sb_0[b_0]) # get ascii number of the character if sb_0[b_0].isdigit() : # check if character is numeric amp_0 = (asky-47) # assign amplitude elif sb_0[b_0].isupper() : # check if character is uppercase amp_0 = (asky-54) # assign amplitude else : # else character must be lowercase amp_0 = (asky-60) # assign amplitude elif sb_0[b_0] == '-' : amp_0 = -90 # character for amp = 0 elif sb_0[b_0] == '>' : amp_0 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_0 = blueDuration + 1 # set notetime_0 > blueduration scoreText_0 = '' # clear scoreText_0 if notetime_0 >= blueDuration : break # break out of the loop if amp_0 > 0 : # if note exists (amplitude > 0) dur_0 = durlist_0[c_0] # get duration from durlist amp_0 = (amp_0*1.6)-89 # move amp value to correct dbfs range (max=1) note_0 = notelist_0[c_0] # get note from notelist sp_0 = splist_0[c_0] # get sp from splist pana_0 = panalist_0[c_0] # get pana from panalist panb_0 = panblist_0[c_0] # get panb from panblist attm_0 = attmlist_0[c_0] # get attm from attmlist atcv_0 = atcvlist_0[c_0] # get atcv from atcvlist nvpa_0 = nvpalist_0[c_0] # get nvpa from nvpalist nvca_0 = nvcalist_0[c_0] # get nvca from nvcalist c_0 = c_0 + 1 # note iterator variable scoreText_0 += "i2 "+str(notetime_0)+" "+str(dur_0)+" "+str(note_0)+" "+str(amp_0)+" "+str(sp_0)+" "+str(pana_0)+" "+str(panb_0)+" "+str(attm_0)+" "+str(atcv_0)+" "+str(nvpa_0)+" "+str(nvca_0)+" \n" notetime_0 = notetime_0 + subeat_0 # increment notetime by subeat time value i_0 = i_0 + 1 # loop iterator increment c_0 = 0 # note iterator reset score = scoreText_0 # score output 5.0 84.0 Phad11/13-1 -10197916 2 scoreText_0 = "" # scoreText_0 is cleared bart_0 = 5.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_0 = ['caYWU','bZXVT','aYbYa','TVXZb','UWYac'] # rhythm bpb_0 = len(rhythmr0_0) # beats per bar beat_0 = bart_0/bpb_0 # time of beat in seconds notetime_0 = 0 # set intitial note start time durlist_0 = [1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7] # note duration list notelist_0 = [61,63,60,57,54,60,62,59,56,53,59,61,58,55,52,58,60,57,55,52,57,58,59,60,61] # note list splist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2] # subpatch panalist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # pana list panblist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # panb list attmlist_0 = [.01,.02,.01,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.03,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.01,.02,.01] # attack time list atcvlist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_0 = [4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4] # amplitude envelope curve a list i_0 = 0 # loop iteration counter c_0 = 0 # note iteration counter while i_0 < 1 : # loop until end of soundObject for a_0 in range(bpb_0) : # loop through the items in the rhythm list sb_0 = rhythmr0_0[a_0] # sb is current item in the rhythm list subeat_0 = beat_0/len(sb_0) # subeat is the number of sub-beats in the beat for b_0 in range(len(sb_0)) : # loop through the items in the beat string if sb_0[b_0].isalnum() : # check if character is alphanumeric asky = ord(sb_0[b_0]) # get ascii number of the character if sb_0[b_0].isdigit() : # check if character is numeric amp_0 = (asky-47) # assign amplitude elif sb_0[b_0].isupper() : # check if character is uppercase amp_0 = (asky-54) # assign amplitude else : # else character must be lowercase amp_0 = (asky-60) # assign amplitude elif sb_0[b_0] == '-' : amp_0 = -90 # character for amp = 0 elif sb_0[b_0] == '>' : amp_0 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_0 = blueDuration + 1 # set notetime_0 > blueduration scoreText_0 = '' # clear scoreText_0 if notetime_0 >= blueDuration : break # break out of the loop if amp_0 > 0 : # if note exists (amplitude > 0) dur_0 = durlist_0[c_0] # get duration from durlist amp_0 = (amp_0*1.6)-89 # move amp value to correct dbfs range (max=1) note_0 = notelist_0[c_0] # get note from notelist sp_0 = splist_0[c_0] # get sp from splist pana_0 = panalist_0[c_0] # get pana from panalist panb_0 = panblist_0[c_0] # get panb from panblist attm_0 = attmlist_0[c_0] # get attm from attmlist atcv_0 = atcvlist_0[c_0] # get atcv from atcvlist nvpa_0 = nvpalist_0[c_0] # get nvpa from nvpalist nvca_0 = nvcalist_0[c_0] # get nvca from nvcalist c_0 = c_0 + 1 # note iterator variable scoreText_0 += "i2 "+str(notetime_0)+" "+str(dur_0)+" "+str(note_0)+" "+str(amp_0)+" "+str(sp_0)+" "+str(pana_0)+" "+str(panb_0)+" "+str(attm_0)+" "+str(atcv_0)+" "+str(nvpa_0)+" "+str(nvca_0)+" \n" notetime_0 = notetime_0 + subeat_0 # increment notetime by subeat time value i_0 = i_0 + 1 # loop iterator increment c_0 = 0 # note iterator reset score = scoreText_0 # score output 5.0 89.0 Phad13-1 -10223516 2 scoreText_0 = "" # scoreText_0 is cleared bart_0 = 5.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_0 = ['caYWU','bZXVT','aYbYa','TVXZb','UWYac'] # rhythm bpb_0 = len(rhythmr0_0) # beats per bar beat_0 = bart_0/bpb_0 # time of beat in seconds notetime_0 = 0 # set intitial note start time durlist_0 = [1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7] # note duration list notelist_0 = [62,64,61,58,55,61,63,60,57,54,60,62,59,56,53,59,61,58,56,53,58,59,60,61,62] # note list splist_0 = [2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2] # subpatch panalist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # pana list panblist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # panb list attmlist_0 = [.01,.02,.01,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.03,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.01,.02,.01] # attack time list atcvlist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_0 = [4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4] # amplitude envelope curve a list i_0 = 0 # loop iteration counter c_0 = 0 # note iteration counter while i_0 < 1 : # loop until end of soundObject for a_0 in range(bpb_0) : # loop through the items in the rhythm list sb_0 = rhythmr0_0[a_0] # sb is current item in the rhythm list subeat_0 = beat_0/len(sb_0) # subeat is the number of sub-beats in the beat for b_0 in range(len(sb_0)) : # loop through the items in the beat string if sb_0[b_0].isalnum() : # check if character is alphanumeric asky = ord(sb_0[b_0]) # get ascii number of the character if sb_0[b_0].isdigit() : # check if character is numeric amp_0 = (asky-47) # assign amplitude elif sb_0[b_0].isupper() : # check if character is uppercase amp_0 = (asky-54) # assign amplitude else : # else character must be lowercase amp_0 = (asky-60) # assign amplitude elif sb_0[b_0] == '-' : amp_0 = -90 # character for amp = 0 elif sb_0[b_0] == '>' : amp_0 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_0 = blueDuration + 1 # set notetime_0 > blueduration scoreText_0 = '' # clear scoreText_0 if notetime_0 >= blueDuration : break # break out of the loop if amp_0 > 0 : # if note exists (amplitude > 0) dur_0 = durlist_0[c_0] # get duration from durlist amp_0 = (amp_0*1.6)-89 # move amp value to correct dbfs range (max=1) note_0 = notelist_0[c_0] # get note from notelist sp_0 = splist_0[c_0] # get sp from splist pana_0 = panalist_0[c_0] # get pana from panalist panb_0 = panblist_0[c_0] # get panb from panblist attm_0 = attmlist_0[c_0] # get attm from attmlist atcv_0 = atcvlist_0[c_0] # get atcv from atcvlist nvpa_0 = nvpalist_0[c_0] # get nvpa from nvpalist nvca_0 = nvcalist_0[c_0] # get nvca from nvcalist c_0 = c_0 + 1 # note iterator variable scoreText_0 += "i2 "+str(notetime_0)+" "+str(dur_0)+" "+str(note_0)+" "+str(amp_0)+" "+str(sp_0)+" "+str(pana_0)+" "+str(panb_0)+" "+str(attm_0)+" "+str(atcv_0)+" "+str(nvpa_0)+" "+str(nvca_0)+" \n" notetime_0 = notetime_0 + subeat_0 # increment notetime by subeat time value i_0 = i_0 + 1 # loop iterator increment c_0 = 0 # note iterator reset score = scoreText_0 # score output 5.0 94.0 Phad13-2 -10223516 2 scoreText_0 = "" # scoreText_0 is cleared bart_0 = 5.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_0 = ['caYWU','bZXVT','aYbYa','TVXZb','UWYac'] # rhythm bpb_0 = len(rhythmr0_0) # beats per bar beat_0 = bart_0/bpb_0 # time of beat in seconds notetime_0 = 0 # set intitial note start time durlist_0 = [1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7] # note duration list notelist_0 = [63,65,62,59,56,62,64,61,58,55,61,63,60,57,54,60,62,59,57,54,59,60,61,62,63] # note list splist_0 = [2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2] # subpatch panalist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # pana list panblist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # panb list attmlist_0 = [.01,.02,.01,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.03,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.01,.02,.01] # attack time list atcvlist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_0 = [4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4] # amplitude envelope curve a list i_0 = 0 # loop iteration counter c_0 = 0 # note iteration counter while i_0 < 1 : # loop until end of soundObject for a_0 in range(bpb_0) : # loop through the items in the rhythm list sb_0 = rhythmr0_0[a_0] # sb is current item in the rhythm list subeat_0 = beat_0/len(sb_0) # subeat is the number of sub-beats in the beat for b_0 in range(len(sb_0)) : # loop through the items in the beat string if sb_0[b_0].isalnum() : # check if character is alphanumeric asky = ord(sb_0[b_0]) # get ascii number of the character if sb_0[b_0].isdigit() : # check if character is numeric amp_0 = (asky-47) # assign amplitude elif sb_0[b_0].isupper() : # check if character is uppercase amp_0 = (asky-54) # assign amplitude else : # else character must be lowercase amp_0 = (asky-60) # assign amplitude elif sb_0[b_0] == '-' : amp_0 = -90 # character for amp = 0 elif sb_0[b_0] == '>' : amp_0 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_0 = blueDuration + 1 # set notetime_0 > blueduration scoreText_0 = '' # clear scoreText_0 if notetime_0 >= blueDuration : break # break out of the loop if amp_0 > 0 : # if note exists (amplitude > 0) dur_0 = durlist_0[c_0] # get duration from durlist amp_0 = (amp_0*1.6)-89 # move amp value to correct dbfs range (max=1) note_0 = notelist_0[c_0] # get note from notelist sp_0 = splist_0[c_0] # get sp from splist pana_0 = panalist_0[c_0] # get pana from panalist panb_0 = panblist_0[c_0] # get panb from panblist attm_0 = attmlist_0[c_0] # get attm from attmlist atcv_0 = atcvlist_0[c_0] # get atcv from atcvlist nvpa_0 = nvpalist_0[c_0] # get nvpa from nvpalist nvca_0 = nvcalist_0[c_0] # get nvca from nvcalist c_0 = c_0 + 1 # note iterator variable scoreText_0 += "i2 "+str(notetime_0)+" "+str(dur_0)+" "+str(note_0)+" "+str(amp_0)+" "+str(sp_0)+" "+str(pana_0)+" "+str(panb_0)+" "+str(attm_0)+" "+str(atcv_0)+" "+str(nvpa_0)+" "+str(nvca_0)+" \n" notetime_0 = notetime_0 + subeat_0 # increment notetime by subeat time value i_0 = i_0 + 1 # loop iterator increment c_0 = 0 # note iterator reset score = scoreText_0 # score output 5.0 99.0 Phad12-2 -10198016 2 scoreText_0 = "" # scoreText_0 is cleared bart_0 = 5.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_0 = ['caYWU','bZXVT','aYbYa','TVXZb','UWYac'] # rhythm bpb_0 = len(rhythmr0_0) # beats per bar beat_0 = bart_0/bpb_0 # time of beat in seconds notetime_0 = 0 # set intitial note start time durlist_0 = [1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7] # note duration list notelist_0 = [64,61,58,55,52, 62,59,56,53,50, 60,57,54,57,60, 50,53,56,59,62, 52,55,58,61,64] # note list splist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # subpatch panalist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # pana list panblist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # panb list attmlist_0 = [.01,.02,.01,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.03,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.01,.02,.01] # attack time list atcvlist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_0 = [4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4] # amplitude envelope curve a list i_0 = 0 # loop iteration counter c_0 = 0 # note iteration counter while i_0 < 1 : # loop until end of soundObject for a_0 in range(bpb_0) : # loop through the items in the rhythm list sb_0 = rhythmr0_0[a_0] # sb is current item in the rhythm list subeat_0 = beat_0/len(sb_0) # subeat is the number of sub-beats in the beat for b_0 in range(len(sb_0)) : # loop through the items in the beat string if sb_0[b_0].isalnum() : # check if character is alphanumeric asky = ord(sb_0[b_0]) # get ascii number of the character if sb_0[b_0].isdigit() : # check if character is numeric amp_0 = (asky-47) # assign amplitude elif sb_0[b_0].isupper() : # check if character is uppercase amp_0 = (asky-54) # assign amplitude else : # else character must be lowercase amp_0 = (asky-60) # assign amplitude elif sb_0[b_0] == '-' : amp_0 = -90 # character for amp = 0 elif sb_0[b_0] == '>' : amp_0 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_0 = blueDuration + 1 # set notetime_0 > blueduration scoreText_0 = '' # clear scoreText_0 if notetime_0 >= blueDuration : break # break out of the loop if amp_0 > 0 : # if note exists (amplitude > 0) dur_0 = durlist_0[c_0] # get duration from durlist amp_0 = (amp_0*1.6)-89 # move amp value to correct dbfs range (max=1) note_0 = notelist_0[c_0] # get note from notelist sp_0 = splist_0[c_0] # get sp from splist pana_0 = panalist_0[c_0] # get pana from panalist panb_0 = panblist_0[c_0] # get panb from panblist attm_0 = attmlist_0[c_0] # get attm from attmlist atcv_0 = atcvlist_0[c_0] # get atcv from atcvlist nvpa_0 = nvpalist_0[c_0] # get nvpa from nvpalist nvca_0 = nvcalist_0[c_0] # get nvca from nvcalist c_0 = c_0 + 1 # note iterator variable scoreText_0 += "i2 "+str(notetime_0-attmlist_0[c_0])+" "+str(dur_0)+" "+str(note_0)+" "+str(amp_0)+" "+str(sp_0)+" "+str(pana_0)+" "+str(panb_0)+" "+str(attm_0)+" "+str(atcv_0)+" "+str(nvpa_0)+" "+str(nvca_0)+" \n" notetime_0 = notetime_0 + subeat_0 # increment notetime by subeat time value i_0 = i_0 + 1 # loop iterator increment c_0 = 0 # note iterator reset score = scoreText_0 # score output 5.0 104.0 Phad12-3 -10198016 2 scoreText_0 = "" # scoreText_0 is cleared bart_0 = 5.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_0 = ['caYWU','bZXVT','aYbYa','TVXZb','UWYac'] # rhythm bpb_0 = len(rhythmr0_0) # beats per bar beat_0 = bart_0/bpb_0 # time of beat in seconds notetime_0 = 0 # set intitial note start time durlist_0 = [1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7] # note duration list notelist_0 = [64,67,70,73,76, 66,69,72,75,78, 68,71,74,71,68, 78,75,72,69,66, 76,73,70,67,64] # note list splist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # subpatch panalist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # pana list panblist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # panb list attmlist_0 = [.01,.02,.01,.02,.01, .02,.03,.02,.01,.02, .02,.02,.005,.02,.02, .02,.01,.02,.03,.02, .01,.02,.01,.02,.01] # attack time list atcvlist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_0 = [4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4] # amplitude envelope curve a list i_0 = 0 # loop iteration counter c_0 = 0 # note iteration counter while i_0 < 1 : # loop until end of soundObject for a_0 in range(bpb_0) : # loop through the items in the rhythm list sb_0 = rhythmr0_0[a_0] # sb is current item in the rhythm list subeat_0 = beat_0/len(sb_0) # subeat is the number of sub-beats in the beat for b_0 in range(len(sb_0)) : # loop through the items in the beat string if sb_0[b_0].isalnum() : # check if character is alphanumeric asky = ord(sb_0[b_0]) # get ascii number of the character if sb_0[b_0].isdigit() : # check if character is numeric amp_0 = (asky-47) # assign amplitude elif sb_0[b_0].isupper() : # check if character is uppercase amp_0 = (asky-54) # assign amplitude else : # else character must be lowercase amp_0 = (asky-60) # assign amplitude elif sb_0[b_0] == '-' : amp_0 = -90 # character for amp = 0 elif sb_0[b_0] == '>' : amp_0 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_0 = blueDuration + 1 # set notetime_0 > blueduration scoreText_0 = '' # clear scoreText_0 if notetime_0 >= blueDuration : break # break out of the loop if amp_0 > 0 : # if note exists (amplitude > 0) dur_0 = durlist_0[c_0] # get duration from durlist amp_0 = (amp_0*1.6)-89 # move amp value to correct dbfs range (max=1) note_0 = notelist_0[c_0] # get note from notelist sp_0 = splist_0[c_0] # get sp from splist pana_0 = panalist_0[c_0] # get pana from panalist panb_0 = panblist_0[c_0] # get panb from panblist attm_0 = attmlist_0[c_0] # get attm from attmlist atcv_0 = atcvlist_0[c_0] # get atcv from atcvlist nvpa_0 = nvpalist_0[c_0] # get nvpa from nvpalist nvca_0 = nvcalist_0[c_0] # get nvca from nvcalist c_0 = c_0 + 1 # note iterator variable scoreText_0 += "i2 "+str(notetime_0)+" "+str(dur_0)+" "+str(note_0)+" "+str(amp_0)+" "+str(sp_0)+" "+str(pana_0)+" "+str(panb_0)+" "+str(attm_0)+" "+str(atcv_0)+" "+str(nvpa_0)+" "+str(nvca_0)+" \n" notetime_0 = notetime_0 + subeat_0 # increment notetime by subeat time value i_0 = i_0 + 1 # loop iterator increment c_0 = 0 # note iterator reset score = scoreText_0 # score output 5.0 109.0 Phad12/11-1 -10197916 2 scoreText_0 = "" # scoreText_0 is cleared bart_0 = 5.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_0 = ['caYWU','bZXVT','aYXWV','aYXWV','aYZab'] # rhythm bpb_0 = len(rhythmr0_0) # beats per bar beat_0 = bart_0/bpb_0 # time of beat in seconds notetime_0 = 0 # set intitial note start time durlist_0 = [1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7] # note duration list notelist_0 = [64,61,58,55,52, 62,59,56,53,50, 60,57,54,51,48, 50,52,53,56,59, 52,54,55,58,61] # note list splist_0 = [0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # subpatch panalist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # pana list panblist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # panb list attmlist_0 = [.01,.02,.01,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.03,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.01,.02,.01] # attack time list atcvlist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_0 = [4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4] # amplitude envelope curve a list i_0 = 0 # loop iteration counter c_0 = 0 # note iteration counter while i_0 < 1 : # loop until end of soundObject for a_0 in range(bpb_0) : # loop through the items in the rhythm list sb_0 = rhythmr0_0[a_0] # sb is current item in the rhythm list subeat_0 = beat_0/len(sb_0) # subeat is the number of sub-beats in the beat for b_0 in range(len(sb_0)) : # loop through the items in the beat string if sb_0[b_0].isalnum() : # check if character is alphanumeric asky = ord(sb_0[b_0]) # get ascii number of the character if sb_0[b_0].isdigit() : # check if character is numeric amp_0 = (asky-47) # assign amplitude elif sb_0[b_0].isupper() : # check if character is uppercase amp_0 = (asky-54) # assign amplitude else : # else character must be lowercase amp_0 = (asky-60) # assign amplitude elif sb_0[b_0] == '-' : amp_0 = -90 # character for amp = 0 elif sb_0[b_0] == '>' : amp_0 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_0 = blueDuration + 1 # set notetime_0 > blueduration scoreText_0 = '' # clear scoreText_0 if notetime_0 >= blueDuration : break # break out of the loop if amp_0 > 0 : # if note exists (amplitude > 0) dur_0 = durlist_0[c_0] # get duration from durlist amp_0 = (amp_0*1.6)-89 # move amp value to correct dbfs range (max=1) note_0 = notelist_0[c_0] # get note from notelist sp_0 = splist_0[c_0] # get sp from splist pana_0 = panalist_0[c_0] # get pana from panalist panb_0 = panblist_0[c_0] # get panb from panblist attm_0 = attmlist_0[c_0] # get attm from attmlist atcv_0 = atcvlist_0[c_0] # get atcv from atcvlist nvpa_0 = nvpalist_0[c_0] # get nvpa from nvpalist nvca_0 = nvcalist_0[c_0] # get nvca from nvcalist c_0 = c_0 + 1 # note iterator variable scoreText_0 += "i2 "+str(notetime_0)+" "+str(dur_0)+" "+str(note_0)+" "+str(amp_0)+" "+str(sp_0)+" "+str(pana_0)+" "+str(panb_0)+" "+str(attm_0)+" "+str(atcv_0)+" "+str(nvpa_0)+" "+str(nvca_0)+" \n" notetime_0 = notetime_0 + subeat_0 # increment notetime by subeat time value i_0 = i_0 + 1 # loop iterator increment c_0 = 0 # note iterator reset score = scoreText_0 # score output 5.0 114.0 Phad11-2 -16751516 2 scoreText_0 = "" # scoreText_0 is cleared bart_0 = 5.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_0 = ['caYWU','bZXVT','aYbYa','TVXZb','UWYac'] # rhythm bpb_0 = len(rhythmr0_0) # beats per bar beat_0 = bart_0/bpb_0 # time of beat in seconds notetime_0 = 0 # set intitial note start time durlist_0 = [1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7] # note duration list notelist_0 = [64,67,70,73,76, 66,69,72,75,78, 68,71,74,71,68, 78,75,72,69,66, 76,73,70,67,64] # note list splist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # subpatch panalist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # pana list panblist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # panb list attmlist_0 = [.01,.02,.01,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.03,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.01,.02,.01] # attack time list atcvlist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_0 = [4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4] # amplitude envelope curve a list i_0 = 0 # loop iteration counter c_0 = 0 # note iteration counter while i_0 < 1 : # loop until end of soundObject for a_0 in range(bpb_0) : # loop through the items in the rhythm list sb_0 = rhythmr0_0[a_0] # sb is current item in the rhythm list subeat_0 = beat_0/len(sb_0) # subeat is the number of sub-beats in the beat for b_0 in range(len(sb_0)) : # loop through the items in the beat string if sb_0[b_0].isalnum() : # check if character is alphanumeric asky = ord(sb_0[b_0]) # get ascii number of the character if sb_0[b_0].isdigit() : # check if character is numeric amp_0 = (asky-47) # assign amplitude elif sb_0[b_0].isupper() : # check if character is uppercase amp_0 = (asky-54) # assign amplitude else : # else character must be lowercase amp_0 = (asky-60) # assign amplitude elif sb_0[b_0] == '-' : amp_0 = -90 # character for amp = 0 elif sb_0[b_0] == '>' : amp_0 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_0 = blueDuration + 1 # set notetime_0 > blueduration scoreText_0 = '' # clear scoreText_0 if notetime_0 >= blueDuration : break # break out of the loop if amp_0 > 0 : # if note exists (amplitude > 0) dur_0 = durlist_0[c_0] # get duration from durlist amp_0 = (amp_0*1.6)-89 # move amp value to correct dbfs range (max=1) note_0 = notelist_0[c_0] # get note from notelist sp_0 = splist_0[c_0] # get sp from splist pana_0 = panalist_0[c_0] # get pana from panalist panb_0 = panblist_0[c_0] # get panb from panblist attm_0 = attmlist_0[c_0] # get attm from attmlist atcv_0 = atcvlist_0[c_0] # get atcv from atcvlist nvpa_0 = nvpalist_0[c_0] # get nvpa from nvpalist nvca_0 = nvcalist_0[c_0] # get nvca from nvcalist c_0 = c_0 + 1 # note iterator variable scoreText_0 += "i2 "+str(notetime_0)+" "+str(dur_0)+" "+str(note_0)+" "+str(amp_0)+" "+str(sp_0)+" "+str(pana_0)+" "+str(panb_0)+" "+str(attm_0)+" "+str(atcv_0)+" "+str(nvpa_0)+" "+str(nvca_0)+" \n" notetime_0 = notetime_0 + subeat_0 # increment notetime by subeat time value i_0 = i_0 + 1 # loop iterator increment c_0 = 0 # note iterator reset score = scoreText_0 # score output 5.0 119.0 Phad11/13-2 -10197916 2 scoreText_0 = "" # scoreText_0 is cleared bart_0 = 5.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_0 = ['caYWU','bZXVT','aZYXW','TVXZb','UWYac'] # rhythm bpb_0 = len(rhythmr0_0) # beats per bar beat_0 = bart_0/bpb_0 # time of beat in seconds notetime_0 = 0 # set intitial note start time durlist_0 = [1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7] # note duration list notelist_0 = [64,61,58,55,52, 62,59,56,53,50, 60,57,54,51,48, 50,53,56,59,62, 52,55,58,61,64] # note list splist_0 = [1,1,1,1,1, 1,1,1,1,1, 2,2,2,2,2, 2,2,2,2,2, 2,2,2,2,2] # subpatch panalist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # pana list panblist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # panb list attmlist_0 = [.01,.02,.01,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.03,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.01,.02,.01] # attack time list atcvlist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_0 = [4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4] # amplitude envelope curve a list i_0 = 0 # loop iteration counter c_0 = 0 # note iteration counter while i_0 < 1 : # loop until end of soundObject for a_0 in range(bpb_0) : # loop through the items in the rhythm list sb_0 = rhythmr0_0[a_0] # sb is current item in the rhythm list subeat_0 = beat_0/len(sb_0) # subeat is the number of sub-beats in the beat for b_0 in range(len(sb_0)) : # loop through the items in the beat string if sb_0[b_0].isalnum() : # check if character is alphanumeric asky = ord(sb_0[b_0]) # get ascii number of the character if sb_0[b_0].isdigit() : # check if character is numeric amp_0 = (asky-47) # assign amplitude elif sb_0[b_0].isupper() : # check if character is uppercase amp_0 = (asky-54) # assign amplitude else : # else character must be lowercase amp_0 = (asky-60) # assign amplitude elif sb_0[b_0] == '-' : amp_0 = -90 # character for amp = 0 elif sb_0[b_0] == '>' : amp_0 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_0 = blueDuration + 1 # set notetime_0 > blueduration scoreText_0 = '' # clear scoreText_0 if notetime_0 >= blueDuration : break # break out of the loop if amp_0 > 0 : # if note exists (amplitude > 0) dur_0 = durlist_0[c_0] # get duration from durlist amp_0 = (amp_0*1.6)-89 # move amp value to correct dbfs range (max=1) note_0 = notelist_0[c_0] # get note from notelist sp_0 = splist_0[c_0] # get sp from splist pana_0 = panalist_0[c_0] # get pana from panalist panb_0 = panblist_0[c_0] # get panb from panblist attm_0 = attmlist_0[c_0] # get attm from attmlist atcv_0 = atcvlist_0[c_0] # get atcv from atcvlist nvpa_0 = nvpalist_0[c_0] # get nvpa from nvpalist nvca_0 = nvcalist_0[c_0] # get nvca from nvcalist c_0 = c_0 + 1 # note iterator variable scoreText_0 += "i2 "+str(notetime_0-attmlist_0[c_0])+" "+str(dur_0)+" "+str(note_0)+" "+str(amp_0)+" "+str(sp_0)+" "+str(pana_0)+" "+str(panb_0)+" "+str(attm_0)+" "+str(atcv_0)+" "+str(nvpa_0)+" "+str(nvca_0)+" \n" notetime_0 = notetime_0 + subeat_0 # increment notetime by subeat time value i_0 = i_0 + 1 # loop iterator increment c_0 = 0 # note iterator reset score = scoreText_0 # score output 5.0 124.0 Phad13-3 -10223516 2 scoreText_0 = "" # scoreText_0 is cleared bart_0 = 5.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_0 = ['caYWU','bZXVT','aYWVT','TVXZb','ZXVTR'] # rhythm bpb_0 = len(rhythmr0_0) # beats per bar beat_0 = bart_0/bpb_0 # time of beat in seconds notetime_0 = 0 # set intitial note start time durlist_0 = [1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7] # note duration list notelist_0 = [64,67,70,73,76, 66,69,72,75,78, 67,70,73,76,79, 68,71,74,77,80, 75,70,65,60,55] # note list splist_0 = [2,2,2,2,2, 2,2,2,2,2, 2,2,2,2,2, 2,2,2,2,2, 2,2,2,2,2] # subpatch panalist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # pana list panblist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # panb list attmlist_0 = [.01,.02,.01,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.03,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.01,.02,.01] # attack time list atcvlist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_0 = [4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4] # amplitude envelope curve a list i_0 = 0 # loop iteration counter c_0 = 0 # note iteration counter while i_0 < 1 : # loop until end of soundObject for a_0 in range(bpb_0) : # loop through the items in the rhythm list sb_0 = rhythmr0_0[a_0] # sb is current item in the rhythm list subeat_0 = beat_0/len(sb_0) # subeat is the number of sub-beats in the beat for b_0 in range(len(sb_0)) : # loop through the items in the beat string if sb_0[b_0].isalnum() : # check if character is alphanumeric asky = ord(sb_0[b_0]) # get ascii number of the character if sb_0[b_0].isdigit() : # check if character is numeric amp_0 = (asky-47) # assign amplitude elif sb_0[b_0].isupper() : # check if character is uppercase amp_0 = (asky-54) # assign amplitude else : # else character must be lowercase amp_0 = (asky-60) # assign amplitude elif sb_0[b_0] == '-' : amp_0 = -90 # character for amp = 0 elif sb_0[b_0] == '>' : amp_0 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_0 = blueDuration + 1 # set notetime_0 > blueduration scoreText_0 = '' # clear scoreText_0 if notetime_0 >= blueDuration : break # break out of the loop if amp_0 > 0 : # if note exists (amplitude > 0) dur_0 = durlist_0[c_0] # get duration from durlist amp_0 = (amp_0*1.6)-89 # move amp value to correct dbfs range (max=1) note_0 = notelist_0[c_0] # get note from notelist sp_0 = splist_0[c_0] # get sp from splist pana_0 = panalist_0[c_0] # get pana from panalist panb_0 = panblist_0[c_0] # get panb from panblist attm_0 = attmlist_0[c_0] # get attm from attmlist atcv_0 = atcvlist_0[c_0] # get atcv from atcvlist nvpa_0 = nvpalist_0[c_0] # get nvpa from nvpalist nvca_0 = nvcalist_0[c_0] # get nvca from nvcalist c_0 = c_0 + 1 # note iterator variable scoreText_0 += "i2 "+str(notetime_0)+" "+str(dur_0)+" "+str(note_0)+" "+str(amp_0)+" "+str(sp_0)+" "+str(pana_0)+" "+str(panb_0)+" "+str(attm_0)+" "+str(atcv_0)+" "+str(nvpa_0)+" "+str(nvca_0)+" \n" notetime_0 = notetime_0 + subeat_0 # increment notetime by subeat time value i_0 = i_0 + 1 # loop iterator increment c_0 = 0 # note iterator reset score = scoreText_0 # score output 5.0 175.0 Phad12-4 -10198016 2 scoreText_0 = "" # scoreText_0 is cleared bart_0 = 5.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_0 = ['cZWTQ','NKcZW','TQNKc','ZWTQN','KHEB8'] # rhythm bpb_0 = len(rhythmr0_0) # beats per bar beat_0 = bart_0/bpb_0 # time of beat in seconds notetime_0 = 0 # set intitial note start time durlist_0 = [.25,.25,.25,.25,.25,.25,.25, .25,.25,.25,.25,.25,.25,.25, .25,.25,.25,.25,.25,.25, .25,.25,.25,.25,.25] # note duration list notelist_0 = [62,62,62,62,62,62,62, 50,50,50,50,50,50,50, 60,60,60,60,60,60,60, 60,60,60,60] # note list splist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # subpatch panalist_0 = [-.4,.6,-.3,.7,-.2, .2,-.4,.4,-.3,.3, -.5,.5,-.1,.4,-.6, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # pana list panblist_0 = [-.4,.6,-.3,.7,-.2, .2,-.4,.4,-.3,.3, -.5,.5,-.1,.4,-.6, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # panb list attmlist_0 = [.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01] # attack time list atcvlist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_0 = [4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4] # amplitude envelope curve a list i_0 = 0 # loop iteration counter c_0 = 0 # note iteration counter while i_0 < 1 : # loop until end of soundObject for a_0 in range(bpb_0) : # loop through the items in the rhythm list sb_0 = rhythmr0_0[a_0] # sb is current item in the rhythm list subeat_0 = beat_0/len(sb_0) # subeat is the number of sub-beats in the beat for b_0 in range(len(sb_0)) : # loop through the items in the beat string if sb_0[b_0].isalnum() : # check if character is alphanumeric asky = ord(sb_0[b_0]) # get ascii number of the character if sb_0[b_0].isdigit() : # check if character is numeric amp_0 = (asky-47) # assign amplitude elif sb_0[b_0].isupper() : # check if character is uppercase amp_0 = (asky-54) # assign amplitude else : # else character must be lowercase amp_0 = (asky-60) # assign amplitude elif sb_0[b_0] == '-' : amp_0 = -90 # character for amp = 0 elif sb_0[b_0] == '>' : amp_0 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_0 = blueDuration + 1 # set notetime_0 > blueduration scoreText_0 = '' # clear scoreText_0 if notetime_0 >= blueDuration : break # break out of the loop if amp_0 > 0 : # if note exists (amplitude > 0) dur_0 = durlist_0[c_0] # get duration from durlist amp_0 = (amp_0*1.6)-89 # move amp value to correct dbfs range (max=1) note_0 = notelist_0[c_0] # get note from notelist sp_0 = splist_0[c_0] # get sp from splist pana_0 = panalist_0[c_0] # get pana from panalist panb_0 = panblist_0[c_0] # get panb from panblist attm_0 = attmlist_0[c_0] # get attm from attmlist atcv_0 = atcvlist_0[c_0] # get atcv from atcvlist nvpa_0 = nvpalist_0[c_0] # get nvpa from nvpalist nvca_0 = nvcalist_0[c_0] # get nvca from nvcalist c_0 = c_0 + 1 # note iterator variable scoreText_0 += "i2 "+str(notetime_0-attmlist_0[c_0])+" "+str(dur_0)+" "+str(note_0)+" "+str(amp_0)+" "+str(sp_0)+" "+str(pana_0)+" "+str(panb_0)+" "+str(attm_0)+" "+str(atcv_0)+" "+str(nvpa_0)+" "+str(nvca_0)+" \n" notetime_0 = notetime_0 + subeat_0 # increment notetime by subeat time value i_0 = i_0 + 1 # loop iterator increment c_0 = 0 # note iterator reset score = scoreText_0 # score output 5.0 180.0 Phad12/11-2 -10197916 2 scoreText_0 = "" # scoreText_0 is cleared bart_0 = 5.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_0 = ['cZWTQ','bYVSP','VVUUTTSSRRQQPPO','-','-'] # rhythm bpb_0 = len(rhythmr0_0) # beats per bar beat_0 = bart_0/bpb_0 # time of beat in seconds notetime_0 = 0 # set intitial note start time durlist_0 = [.25,.25,.25,.25,.25, .25,.25,.25,.25,.25, 2.934,2.868,2.802,2.736,2.67,.93,2.538,2.472,2.406,2.34, 2.274,2.208,2.142,2.076,2.0] # note duration list notelist_0 = [50,50,50,50,50, 45,45,45,45,45, 26,29,33,36,40, 45,50,53,57,60, 62,65,69,72,74] # note list splist_0 = [0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0] # subpatch panalist_0 = [-.4,.6,-.3,.7,-.2, .2,-.4,.4,-.3,.3, -.24,-.23,-.22,-.21,-.2, -.19,-.18,-.17,-.16,-.15, -.14,-.13,-.12,-.11,-.1] # pana list panblist_0 = [-.4,.6,-.3,.7,-.2, .2,-.4,.4,-.3,.3, -.24,-.23,-.22,-.21,-.2, -.19,-.18,-.17,-.16,-.15, -.14,-.13,-.12,.11,-.1] # panb list attmlist_0 = [.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01] # attack time list atcvlist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_0 = [4,4,4,4,4, 4,4,4,4,4, 4,4,4,4,4, 4,4,4,4,4,4,4,4,4,4,4] # amplitude envelope curve a list i_0 = 0 # loop iteration counter c_0 = 0 # note iteration counter while i_0 < 1 : # loop until end of soundObject for a_0 in range(bpb_0) : # loop through the items in the rhythm list sb_0 = rhythmr0_0[a_0] # sb is current item in the rhythm list subeat_0 = beat_0/len(sb_0) # subeat is the number of sub-beats in the beat for b_0 in range(len(sb_0)) : # loop through the items in the beat string if sb_0[b_0].isalnum() : # check if character is alphanumeric asky = ord(sb_0[b_0]) # get ascii number of the character if sb_0[b_0].isdigit() : # check if character is numeric amp_0 = (asky-47) # assign amplitude elif sb_0[b_0].isupper() : # check if character is uppercase amp_0 = (asky-54) # assign amplitude else : # else character must be lowercase amp_0 = (asky-60) # assign amplitude elif sb_0[b_0] == '-' : amp_0 = -90 # character for amp = 0 elif sb_0[b_0] == '>' : amp_0 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_0 = blueDuration + 1 # set notetime_0 > blueduration scoreText_0 = '' # clear scoreText_0 if notetime_0 >= blueDuration : break # break out of the loop if amp_0 > 0 : # if note exists (amplitude > 0) dur_0 = durlist_0[c_0] # get duration from durlist amp_0 = (amp_0*1.6)-89 # move amp value to correct dbfs range (max=1) note_0 = notelist_0[c_0] # get note from notelist sp_0 = splist_0[c_0] # get sp from splist pana_0 = panalist_0[c_0] # get pana from panalist panb_0 = panblist_0[c_0] # get panb from panblist attm_0 = attmlist_0[c_0] # get attm from attmlist atcv_0 = atcvlist_0[c_0] # get atcv from atcvlist nvpa_0 = nvpalist_0[c_0] # get nvpa from nvpalist nvca_0 = nvcalist_0[c_0] # get nvca from nvcalist c_0 = c_0 + 1 # note iterator variable scoreText_0 += "i2 "+str(notetime_0-attmlist_0[c_0])+" "+str(dur_0)+" "+str(note_0)+" "+str(amp_0)+" "+str(sp_0)+" "+str(pana_0)+" "+str(panb_0)+" "+str(attm_0)+" "+str(atcv_0)+" "+str(nvpa_0)+" "+str(nvca_0)+" \n" notetime_0 = notetime_0 + subeat_0 # increment notetime by subeat time value i_0 = i_0 + 1 # loop iterator increment c_0 = 0 # note iterator reset score = scoreText_0 # score output 2.0 185.0 P0a -16751516 2 scoreText_0 = "" # scoreText_0 is cleared bart_0 = 2.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_0 = ['ZZaabbccdd-----','VVUUTTSSRRQQPPO'] # rhythm bpb_0 = len(rhythmr0_0) # beats per bar beat_0 = bart_0/bpb_0 # time of beat in seconds notetime_0 = 0 # set intitial note start time durlist_0 = [.93,2.538,2.472,2.406,2.34, 2.274,2.208,2.142,2.076,2.0, 2.934,2.868,2.802,2.736,2.67,.93,2.538,2.472,2.406,2.34, 2.274,2.208,2.142,2.076,2.0] # note duration list notelist_0 = [50,46,42,38,34,30,26,22,18,14, 22,26,34,38,42, 46,50,54,58,62, 66,70,74,78,82] # note list splist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # subpatch panalist_0 = [.24,.23,.22,.21,.2, .19,.18,.17,.16,.15, -.24,-.23,-.22,-.21,-.2, -.19,-.18,-.17,-.16,-.15, -.14,-.13,-.12,-.11,-.1] # pana list panblist_0 = [.24,.23,.22,.21,.2, .19,.18,.17,.16,.15, -.24,-.23,-.22,-.21,-.2, -.19,-.18,-.17,-.16,-.15, -.14,-.13,-.12,-.11,-.1] # panb list attmlist_0 = [.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01] # attack time list atcvlist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_0 = [4,4,4,4,4, 4,4,4,4,4, 4,4,4,4,4, 4,4,4,4,4,4,4,4,4,4,4] # amplitude envelope curve a list i_0 = 0 # loop iteration counter c_0 = 0 # note iteration counter while i_0 < 1 : # loop until end of soundObject for a_0 in range(bpb_0) : # loop through the items in the rhythm list sb_0 = rhythmr0_0[a_0] # sb is current item in the rhythm list subeat_0 = beat_0/len(sb_0) # subeat is the number of sub-beats in the beat for b_0 in range(len(sb_0)) : # loop through the items in the beat string if sb_0[b_0].isalnum() : # check if character is alphanumeric asky = ord(sb_0[b_0]) # get ascii number of the character if sb_0[b_0].isdigit() : # check if character is numeric amp_0 = (asky-47) # assign amplitude elif sb_0[b_0].isupper() : # check if character is uppercase amp_0 = (asky-54) # assign amplitude else : # else character must be lowercase amp_0 = (asky-60) # assign amplitude elif sb_0[b_0] == '-' : amp_0 = -90 # character for amp = 0 elif sb_0[b_0] == '>' : amp_0 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_0 = blueDuration + 1 # set notetime_0 > blueduration scoreText_0 = '' # clear scoreText_0 if notetime_0 >= blueDuration : break # break out of the loop if amp_0 > 0 : # if note exists (amplitude > 0) dur_0 = durlist_0[c_0] # get duration from durlist amp_0 = (amp_0*1.6)-89 # move amp value to correct dbfs range (max=1) note_0 = notelist_0[c_0] # get note from notelist sp_0 = splist_0[c_0] # get sp from splist pana_0 = panalist_0[c_0] # get pana from panalist panb_0 = panblist_0[c_0] # get panb from panblist attm_0 = attmlist_0[c_0] # get attm from attmlist atcv_0 = atcvlist_0[c_0] # get atcv from atcvlist nvpa_0 = nvpalist_0[c_0] # get nvpa from nvpalist nvca_0 = nvcalist_0[c_0] # get nvca from nvcalist c_0 = c_0 + 1 # note iterator variable scoreText_0 += "i2 "+str(notetime_0-attmlist_0[c_0])+" "+str(dur_0)+" "+str(note_0)+" "+str(amp_0)+" "+str(sp_0)+" "+str(pana_0)+" "+str(panb_0)+" "+str(attm_0)+" "+str(atcv_0)+" "+str(nvpa_0)+" "+str(nvca_0)+" \n" notetime_0 = notetime_0 + subeat_0 # increment notetime by subeat time value i_0 = i_0 + 1 # loop iterator increment c_0 = 0 # note iterator reset score = scoreText_0 # score output 11.0 44.0 Phad11-0 -16738666 2 scoreText_1 = "" # scoreText_1 is cleared bart_1 = 11.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_1 = ['-','-','-','-','Z','--d--','-','-','-','-','-'] # rhythm bpb_1 = len(rhythmr0_1) # beats per bar beat_1 = bart_1/bpb_1 # time of beat in seconds notetime_1 = 0 # set intitial note start time durlist_1 = [3,7,2,1.5,4] # note duration list notelist_1 = [46,54,56,59,62] # note list splist_1 = [1,1,0,0,0,0] # subpatch panalist_1 = [.1,-.2,.3,.4,.5,.2] # pana list panblist_1 = [-.1,0.0,.1,.2,.3,-.1] # panb list attmlist_1 = [.08,.09,.18,.08,.07,.09] # attack time list atcvlist_1 = [0,0,2,-2.5,-2] # attack curve list nvpalist_1 = [1,1,1,1,1] # amplitude envelope point a list nvcalist_1 = [4,3,-3,-2,2] # amplitude envelope curve a list i_1 = 0 # loop iteration counter c_1 = 0 # note iteration counter while i_1 < 1 : # loop until end of soundObject for a_1 in range(bpb_1) : # loop through the items in the rhythm list sb_1 = rhythmr0_1[a_1] # sb is current item in the rhythm list subeat_1 = beat_1/len(sb_1) # subeat is the number of sub-beats in the beat for b_1 in range(len(sb_1)) : # loop through the items in the beat string if sb_1[b_1].isalnum() : # check if character is alphanumeric asky = ord(sb_1[b_1]) # get ascii number of the character if sb_1[b_1].isdigit() : # check if character is numeric amp_1 = (asky-47) # assign amplitude elif sb_1[b_1].isupper() : # check if character is uppercase amp_1 = (asky-54) # assign amplitude else : # else character must be lowercase amp_1 = (asky-60) # assign amplitude elif sb_1[b_1] == '-' : amp_1 = -90 # character for amp = 0 elif sb_1[b_1] == '>' : amp_1 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_1 = blueDuration + 1 # set notetime_1 > blueduration scoreText_1 = '' # clear scoreText_1 if notetime_1 >= blueDuration : break # break out of the loop if amp_1 > 0 : # if note exists (amplitude > 0) dur_1 = durlist_1[c_1] # get duration from durlist amp_1 = (amp_1*1.6)-89 # move amp value to correct dbfs range (max=1) note_1 = notelist_1[c_1] # get note from notelist sp_1 = splist_1[c_1] # get sp from splist pana_1 = panalist_1[c_1] # get pana from panalist panb_1 = panblist_1[c_1] # get panb from panblist attm_1 = attmlist_1[c_1] # get attm from attmlist atcv_1 = atcvlist_1[c_1] # get atcv from atcvlist nvpa_1 = nvpalist_1[c_1] # get nvpa from nvpalist nvca_1 = nvcalist_1[c_1] # get nvca from nvcalist c_1 = c_1 + 1 # note iterator variable scoreText_1 += "i2 "+str(notetime_1-attm_1)+" "+str(dur_1)+" "+str(note_1)+" "+str(amp_1)+" "+str(sp_1)+" "+str(pana_1)+" "+str(panb_1)+" "+str(attm_1)+" "+str(atcv_1)+" "+str(nvpa_1)+" "+str(nvca_1)+" \n" notetime_1 = notetime_1 + subeat_1 # increment notetime by subeat time value i_1 = i_1 + 1 # loop iterator increment c_1 = 0 # note iterator reset score = scoreText_1 # score output 11.0 55.0 Phad13-0 -6946666 2 scoreText_1 = "" # scoreText_1 is cleared bart_1 = 11.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_1 = ['-','-','-','-','i','--g--','-','-','-','-','-'] # rhythm bpb_1 = len(rhythmr0_1) # beats per bar beat_1 = bart_1/bpb_1 # time of beat in seconds notetime_1 = 0 # set intitial note start time durlist_1 = [3,7,2,1.5,4] # note duration list notelist_1 = [37,41,56,59,62] # note list splist_1 = [2,2,0,0,0,0] # subpatch panalist_1 = [-.1,.4,.1,.2,.3,-.1] # pana list panblist_1 = [-.3,.2,.3,.4,.5,.2] # panb list attmlist_1 = [.08,.09,.18,.08,.07,.09] # attack time list atcvlist_1 = [0,0,2,-2.5,-2] # attack curve list nvpalist_1 = [1,1,1,1,1] # amplitude envelope point a list nvcalist_1 = [4,3,-3,-2,2] # amplitude envelope curve a list i_1 = 0 # loop iteration counter c_1 = 0 # note iteration counter while i_1 < 1 : # loop until end of soundObject for a_1 in range(bpb_1) : # loop through the items in the rhythm list sb_1 = rhythmr0_1[a_1] # sb is current item in the rhythm list subeat_1 = beat_1/len(sb_1) # subeat is the number of sub-beats in the beat for b_1 in range(len(sb_1)) : # loop through the items in the beat string if sb_1[b_1].isalnum() : # check if character is alphanumeric asky = ord(sb_1[b_1]) # get ascii number of the character if sb_1[b_1].isdigit() : # check if character is numeric amp_1 = (asky-47) # assign amplitude elif sb_1[b_1].isupper() : # check if character is uppercase amp_1 = (asky-54) # assign amplitude else : # else character must be lowercase amp_1 = (asky-60) # assign amplitude elif sb_1[b_1] == '-' : amp_1 = -90 # character for amp = 0 elif sb_1[b_1] == '>' : amp_1 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_1 = blueDuration + 1 # set notetime_1 > blueduration scoreText_1 = '' # clear scoreText_1 if notetime_1 >= blueDuration : break # break out of the loop if amp_1 > 0 : # if note exists (amplitude > 0) dur_1 = durlist_1[c_1] # get duration from durlist amp_1 = (amp_1*1.6)-89 # move amp value to correct dbfs range (max=1) note_1 = notelist_1[c_1] # get note from notelist sp_1 = splist_1[c_1] # get sp from splist pana_1 = panalist_1[c_1] # get pana from panalist panb_1 = panblist_1[c_1] # get panb from panblist attm_1 = attmlist_1[c_1] # get attm from attmlist atcv_1 = atcvlist_1[c_1] # get atcv from atcvlist nvpa_1 = nvpalist_1[c_1] # get nvpa from nvpalist nvca_1 = nvcalist_1[c_1] # get nvca from nvcalist c_1 = c_1 + 1 # note iterator variable scoreText_1 += "i2 "+str(notetime_1-attm_1)+" "+str(dur_1)+" "+str(note_1)+" "+str(amp_1)+" "+str(sp_1)+" "+str(pana_1)+" "+str(panb_1)+" "+str(attm_1)+" "+str(atcv_1)+" "+str(nvpa_1)+" "+str(nvca_1)+" \n" notetime_1 = notetime_1 + subeat_1 # increment notetime by subeat time value i_1 = i_1 + 1 # loop iterator increment c_1 = 0 # note iterator reset score = scoreText_1 # score output 11.0 33.0 Phad12-0 -6908416 2 scoreText_1 = "" # scoreText_1 is cleared bart_1 = 11.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_1 = ['-','-','-','-','g','--e--','-','-','-','-','-'] # rhythm bpb_1 = len(rhythmr0_1) # beats per bar beat_1 = bart_1/bpb_1 # time of beat in seconds notetime_1 = 0 # set intitial note start time durlist_1 = [3,7,2,1.5,4] # note duration list notelist_1 = [38,49,56,59,62] # note list splist_1 = [0,0,0,0,0,0] # subpatch panalist_1 = [-.1,0,.1,.2,.3,-.1] # pana list panblist_1 = [.1,.2,.3,.4,.5,.2] # panb list attmlist_1 = [.08,.09,.18,.08,.07,.09] # attack time list atcvlist_1 = [0,0,2,-2.5,-2] # attack curve list nvpalist_1 = [1,1,1,1,1] # amplitude envelope point a list nvcalist_1 = [4,3,-3,-2,2] # amplitude envelope curve a list i_1 = 0 # loop iteration counter c_1 = 0 # note iteration counter while i_1 < 1 : # loop until end of soundObject for a_1 in range(bpb_1) : # loop through the items in the rhythm list sb_1 = rhythmr0_1[a_1] # sb is current item in the rhythm list subeat_1 = beat_1/len(sb_1) # subeat is the number of sub-beats in the beat for b_1 in range(len(sb_1)) : # loop through the items in the beat string if sb_1[b_1].isalnum() : # check if character is alphanumeric asky = ord(sb_1[b_1]) # get ascii number of the character if sb_1[b_1].isdigit() : # check if character is numeric amp_1 = (asky-47) # assign amplitude elif sb_1[b_1].isupper() : # check if character is uppercase amp_1 = (asky-54) # assign amplitude else : # else character must be lowercase amp_1 = (asky-60) # assign amplitude elif sb_1[b_1] == '-' : amp_1 = -90 # character for amp = 0 elif sb_1[b_1] == '>' : amp_1 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_1 = blueDuration + 1 # set notetime_1 > blueduration scoreText_1 = '' # clear scoreText_1 if notetime_1 >= blueDuration : break # break out of the loop if amp_1 > 0 : # if note exists (amplitude > 0) dur_1 = durlist_1[c_1] # get duration from durlist amp_1 = (amp_1*1.6)-89 # move amp value to correct dbfs range (max=1) note_1 = notelist_1[c_1] # get note from notelist sp_1 = splist_1[c_1] # get sp from splist pana_1 = panalist_1[c_1] # get pana from panalist panb_1 = panblist_1[c_1] # get panb from panblist attm_1 = attmlist_1[c_1] # get attm from attmlist atcv_1 = atcvlist_1[c_1] # get atcv from atcvlist nvpa_1 = nvpalist_1[c_1] # get nvpa from nvpalist nvca_1 = nvcalist_1[c_1] # get nvca from nvcalist c_1 = c_1 + 1 # note iterator variable scoreText_1 += "i2 "+str(notetime_1-attm_1)+" "+str(dur_1)+" "+str(note_1)+" "+str(amp_1)+" "+str(sp_1)+" "+str(pana_1)+" "+str(panb_1)+" "+str(attm_1)+" "+str(atcv_1)+" "+str(nvpa_1)+" "+str(nvca_1)+" \n" notetime_1 = notetime_1 + subeat_1 # increment notetime by subeat time value i_1 = i_1 + 1 # loop iterator increment c_1 = 0 # note iterator reset score = scoreText_1 # score output 5.0 44.0 Phad11-0 -16751516 2 scoreText_0 = "" # scoreText_0 is cleared bart_0 = 5.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_0 = ['DCBA9','GFEDC','JIHGF','MLKIJ','QPONM'] # rhythm bpb_0 = len(rhythmr0_0) # beats per bar beat_0 = bart_0/bpb_0 # time of beat in seconds notetime_0 = 0 # set intitial note start time durlist_0 = [1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7, 1.5,1.3,1.1,.9,.7] # note duration list notelist_0 = [57,59,56,53,50,56,58,55,52,49,55,57,54,51,48,54,56,53,50,47,53,55,54,55,56] # note list splist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # subpatch panalist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # pana list panblist_0 = [-.1,.1,-.3,.3,-.2, .2,-.4,.4,-.3,.3, -.5,.5,0.0,.5,-.5, .3,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1] # panb list attmlist_0 = [.01,.02,.01,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.03,.03,.02,.01,.02,.03,.02,.01,.02,.03,.02,.01,.02,.01,.02,.01] # attack time list atcvlist_0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_0 = [4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4] # amplitude envelope curve a list i_0 = 0 # loop iteration counter c_0 = 0 # note iteration counter while i_0 < 1 : # loop until end of soundObject for a_0 in range(bpb_0) : # loop through the items in the rhythm list sb_0 = rhythmr0_0[a_0] # sb is current item in the rhythm list subeat_0 = beat_0/len(sb_0) # subeat is the number of sub-beats in the beat for b_0 in range(len(sb_0)) : # loop through the items in the beat string if sb_0[b_0].isalnum() : # check if character is alphanumeric asky = ord(sb_0[b_0]) # get ascii number of the character if sb_0[b_0].isdigit() : # check if character is numeric amp_0 = (asky-47) # assign amplitude elif sb_0[b_0].isupper() : # check if character is uppercase amp_0 = (asky-54) # assign amplitude else : # else character must be lowercase amp_0 = (asky-60) # assign amplitude elif sb_0[b_0] == '-' : amp_0 = -90 # character for amp = 0 elif sb_0[b_0] == '>' : amp_0 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_0 = blueDuration + 1 # set notetime_0 > blueduration scoreText_0 = '' # clear scoreText_0 if notetime_0 >= blueDuration : break # break out of the loop if amp_0 > 0 : # if note exists (amplitude > 0) dur_0 = durlist_0[c_0] # get duration from durlist amp_0 = (amp_0*1.6)-89 # move amp value to correct dbfs range (max=1) note_0 = notelist_0[c_0] # get note from notelist sp_0 = splist_0[c_0] # get sp from splist pana_0 = panalist_0[c_0] # get pana from panalist panb_0 = panblist_0[c_0] # get panb from panblist attm_0 = attmlist_0[c_0] # get attm from attmlist atcv_0 = atcvlist_0[c_0] # get atcv from atcvlist nvpa_0 = nvpalist_0[c_0] # get nvpa from nvpalist nvca_0 = nvcalist_0[c_0] # get nvca from nvcalist c_0 = c_0 + 1 # note iterator variable scoreText_0 += "i2 "+str(notetime_0)+" "+str(dur_0)+" "+str(note_0)+" "+str(amp_0)+" "+str(sp_0)+" "+str(pana_0)+" "+str(panb_0)+" "+str(attm_0)+" "+str(atcv_0)+" "+str(nvpa_0)+" "+str(nvca_0)+" \n" notetime_0 = notetime_0 + subeat_0 # increment notetime by subeat time value i_0 = i_0 + 1 # loop iterator increment c_0 = 0 # note iterator reset score = scoreText_0 # score output 11.0 66.0 Phad12-1 -6908416 2 scoreText_1 = "" # scoreText_1 is cleared bart_1 = 11.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_1 = ['-','-','-','-','h','--i--','-','-','-','-','-'] # rhythm bpb_1 = len(rhythmr0_1) # beats per bar beat_1 = bart_1/bpb_1 # time of beat in seconds notetime_1 = 0 # set intitial note start time durlist_1 = [3,7,2,1.5,4] # note duration list notelist_1 = [38,36,56,59,62] # note list splist_1 = [0,0,0,0,0,0] # subpatch panalist_1 = [-.1,0,.1,.2,.3,-.1] # pana list panblist_1 = [.1,.2,.3,.4,.5,.2] # panb list attmlist_1 = [.08,.09,.18,.08,.07,.09] # attack time list atcvlist_1 = [0,0,2,-2.5,-2] # attack curve list nvpalist_1 = [1,1,1,1,1] # amplitude envelope point a list nvcalist_1 = [4,3,-3,-2,2] # amplitude envelope curve a list i_1 = 0 # loop iteration counter c_1 = 0 # note iteration counter while i_1 < 1 : # loop until end of soundObject for a_1 in range(bpb_1) : # loop through the items in the rhythm list sb_1 = rhythmr0_1[a_1] # sb is current item in the rhythm list subeat_1 = beat_1/len(sb_1) # subeat is the number of sub-beats in the beat for b_1 in range(len(sb_1)) : # loop through the items in the beat string if sb_1[b_1].isalnum() : # check if character is alphanumeric asky = ord(sb_1[b_1]) # get ascii number of the character if sb_1[b_1].isdigit() : # check if character is numeric amp_1 = (asky-47) # assign amplitude elif sb_1[b_1].isupper() : # check if character is uppercase amp_1 = (asky-54) # assign amplitude else : # else character must be lowercase amp_1 = (asky-60) # assign amplitude elif sb_1[b_1] == '-' : amp_1 = -90 # character for amp = 0 elif sb_1[b_1] == '>' : amp_1 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_1 = blueDuration + 1 # set notetime_1 > blueduration scoreText_1 = '' # clear scoreText_1 if notetime_1 >= blueDuration : break # break out of the loop if amp_1 > 0 : # if note exists (amplitude > 0) dur_1 = durlist_1[c_1] # get duration from durlist amp_1 = (amp_1*1.6)-89 # move amp value to correct dbfs range (max=1) note_1 = notelist_1[c_1] # get note from notelist sp_1 = splist_1[c_1] # get sp from splist pana_1 = panalist_1[c_1] # get pana from panalist panb_1 = panblist_1[c_1] # get panb from panblist attm_1 = attmlist_1[c_1] # get attm from attmlist atcv_1 = atcvlist_1[c_1] # get atcv from atcvlist nvpa_1 = nvpalist_1[c_1] # get nvpa from nvpalist nvca_1 = nvcalist_1[c_1] # get nvca from nvcalist c_1 = c_1 + 1 # note iterator variable scoreText_1 += "i2 "+str(notetime_1-attm_1)+" "+str(dur_1)+" "+str(note_1)+" "+str(amp_1)+" "+str(sp_1)+" "+str(pana_1)+" "+str(panb_1)+" "+str(attm_1)+" "+str(atcv_1)+" "+str(nvpa_1)+" "+str(nvca_1)+" \n" notetime_1 = notetime_1 + subeat_1 # increment notetime by subeat time value i_1 = i_1 + 1 # loop iterator increment c_1 = 0 # note iterator reset score = scoreText_1 # score output 11.0 77.0 Phad11-1 -16738666 2 scoreText_1 = "" # scoreText_1 is cleared bart_1 = 11.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_1 = ['-','-','-','-','h','--i--','-','-','-','-','-'] # rhythm bpb_1 = len(rhythmr0_1) # beats per bar beat_1 = bart_1/bpb_1 # time of beat in seconds notetime_1 = 0 # set intitial note start time durlist_1 = [3,7,2,1.5,4] # note duration list notelist_1 = [40,41,56,59,62] # note list splist_1 = [1,1,0,0,0,0] # subpatch panalist_1 = [.1,.2,.3,.4,.5,.2] # pana list panblist_1 = [-.1,0.0,.1,.2,.3,-.1] # panb list attmlist_1 = [.08,.09,.18,.08,.07,.09] # attack time list atcvlist_1 = [0,0,2,-2.5,-2] # attack curve list nvpalist_1 = [1,1,1,1,1] # amplitude envelope point a list nvcalist_1 = [4,3,-3,-2,2] # amplitude envelope curve a list i_1 = 0 # loop iteration counter c_1 = 0 # note iteration counter while i_1 < 1 : # loop until end of soundObject for a_1 in range(bpb_1) : # loop through the items in the rhythm list sb_1 = rhythmr0_1[a_1] # sb is current item in the rhythm list subeat_1 = beat_1/len(sb_1) # subeat is the number of sub-beats in the beat for b_1 in range(len(sb_1)) : # loop through the items in the beat string if sb_1[b_1].isalnum() : # check if character is alphanumeric asky = ord(sb_1[b_1]) # get ascii number of the character if sb_1[b_1].isdigit() : # check if character is numeric amp_1 = (asky-47) # assign amplitude elif sb_1[b_1].isupper() : # check if character is uppercase amp_1 = (asky-54) # assign amplitude else : # else character must be lowercase amp_1 = (asky-60) # assign amplitude elif sb_1[b_1] == '-' : amp_1 = -90 # character for amp = 0 elif sb_1[b_1] == '>' : amp_1 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_1 = blueDuration + 1 # set notetime_1 > blueduration scoreText_1 = '' # clear scoreText_1 if notetime_1 >= blueDuration : break # break out of the loop if amp_1 > 0 : # if note exists (amplitude > 0) dur_1 = durlist_1[c_1] # get duration from durlist amp_1 = (amp_1*1.6)-89 # move amp value to correct dbfs range (max=1) note_1 = notelist_1[c_1] # get note from notelist sp_1 = splist_1[c_1] # get sp from splist pana_1 = panalist_1[c_1] # get pana from panalist panb_1 = panblist_1[c_1] # get panb from panblist attm_1 = attmlist_1[c_1] # get attm from attmlist atcv_1 = atcvlist_1[c_1] # get atcv from atcvlist nvpa_1 = nvpalist_1[c_1] # get nvpa from nvpalist nvca_1 = nvcalist_1[c_1] # get nvca from nvcalist c_1 = c_1 + 1 # note iterator variable scoreText_1 += "i2 "+str(notetime_1-attm_1)+" "+str(dur_1)+" "+str(note_1)+" "+str(amp_1)+" "+str(sp_1)+" "+str(pana_1)+" "+str(panb_1)+" "+str(attm_1)+" "+str(atcv_1)+" "+str(nvpa_1)+" "+str(nvca_1)+" \n" notetime_1 = notetime_1 + subeat_1 # increment notetime by subeat time value i_1 = i_1 + 1 # loop iterator increment c_1 = 0 # note iterator reset score = scoreText_1 # score output 11.0 88.0 Phad13-1 -6946666 2 scoreText_1 = "" # scoreText_1 is cleared bart_1 = 11.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_1 = ['-','-','-','-','h','--g--','-','-','-','-','-'] # rhythm bpb_1 = len(rhythmr0_1) # beats per bar beat_1 = bart_1/bpb_1 # time of beat in seconds notetime_1 = 0 # set intitial note start time durlist_1 = [3,7,2,1.5,4] # note duration list notelist_1 = [39,43,56,59,62] # note list splist_1 = [2,2,0,0,0,0] # subpatch panalist_1 = [-.1,0,.1,.2,.3,-.1] # pana list panblist_1 = [.1,.2,.3,.4,.5,.2] # panb list attmlist_1 = [.08,.09,.18,.08,.07,.09] # attack time list atcvlist_1 = [0,0,2,-2.5,-2] # attack curve list nvpalist_1 = [1,1,1,1,1] # amplitude envelope point a list nvcalist_1 = [4,3,-3,-2,2] # amplitude envelope curve a list i_1 = 0 # loop iteration counter c_1 = 0 # note iteration counter while i_1 < 1 : # loop until end of soundObject for a_1 in range(bpb_1) : # loop through the items in the rhythm list sb_1 = rhythmr0_1[a_1] # sb is current item in the rhythm list subeat_1 = beat_1/len(sb_1) # subeat is the number of sub-beats in the beat for b_1 in range(len(sb_1)) : # loop through the items in the beat string if sb_1[b_1].isalnum() : # check if character is alphanumeric asky = ord(sb_1[b_1]) # get ascii number of the character if sb_1[b_1].isdigit() : # check if character is numeric amp_1 = (asky-47) # assign amplitude elif sb_1[b_1].isupper() : # check if character is uppercase amp_1 = (asky-54) # assign amplitude else : # else character must be lowercase amp_1 = (asky-60) # assign amplitude elif sb_1[b_1] == '-' : amp_1 = -90 # character for amp = 0 elif sb_1[b_1] == '>' : amp_1 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_1 = blueDuration + 1 # set notetime_1 > blueduration scoreText_1 = '' # clear scoreText_1 if notetime_1 >= blueDuration : break # break out of the loop if amp_1 > 0 : # if note exists (amplitude > 0) dur_1 = durlist_1[c_1] # get duration from durlist amp_1 = (amp_1*1.6)-89 # move amp value to correct dbfs range (max=1) note_1 = notelist_1[c_1] # get note from notelist sp_1 = splist_1[c_1] # get sp from splist pana_1 = panalist_1[c_1] # get pana from panalist panb_1 = panblist_1[c_1] # get panb from panblist attm_1 = attmlist_1[c_1] # get attm from attmlist atcv_1 = atcvlist_1[c_1] # get atcv from atcvlist nvpa_1 = nvpalist_1[c_1] # get nvpa from nvpalist nvca_1 = nvcalist_1[c_1] # get nvca from nvcalist c_1 = c_1 + 1 # note iterator variable scoreText_1 += "i2 "+str(notetime_1-attm_1)+" "+str(dur_1)+" "+str(note_1)+" "+str(amp_1)+" "+str(sp_1)+" "+str(pana_1)+" "+str(panb_1)+" "+str(attm_1)+" "+str(atcv_1)+" "+str(nvpa_1)+" "+str(nvca_1)+" \n" notetime_1 = notetime_1 + subeat_1 # increment notetime by subeat time value i_1 = i_1 + 1 # loop iterator increment c_1 = 0 # note iterator reset score = scoreText_1 # score output 11.0 99.0 Phad12-2 -6908416 2 scoreText_1 = "" # scoreText_1 is cleared bart_1 = 11.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_1 = ['g','f','-','e','f','f','g','-','b','e','f'] # rhythm bpb_1 = len(rhythmr0_1) # beats per bar beat_1 = bart_1/bpb_1 # time of beat in seconds notetime_1 = 0 # set intitial note start time durlist_1 = [3.0,3.5,2.3,1.5,1.7,3.6,1.35,1.4,1.6] # note duration list notelist_1 = [34,32,44,34,40,36,42,34,40] # note list splist_1 = [0,0,0,0,0,0,0,0,0] # subpatch panalist_1 = [.6,.2,.6,.2,.3,.1,.2,.1,.3] # pana list panblist_1 = [.4,.1,.7,.4,.2,.2,.3,.1,.3] # panb list attmlist_1 = [.02,.02,.02,.02,.02,.02,.02,.02,.02] # attack time list atcvlist_1 = [0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_1 = [1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_1 = [4,3,3.5,3.7,4.1,2.8,3.3,3.5,2.9] # amplitude envelope curve a list i_1 = 0 # loop iteration counter c_1 = 0 # note iteration counter while i_1 < 1 : # loop until end of soundObject for a_1 in range(bpb_1) : # loop through the items in the rhythm list sb_1 = rhythmr0_1[a_1] # sb is current item in the rhythm list subeat_1 = beat_1/len(sb_1) # subeat is the number of sub-beats in the beat for b_1 in range(len(sb_1)) : # loop through the items in the beat string if sb_1[b_1].isalnum() : # check if character is alphanumeric asky = ord(sb_1[b_1]) # get ascii number of the character if sb_1[b_1].isdigit() : # check if character is numeric amp_1 = (asky-47) # assign amplitude elif sb_1[b_1].isupper() : # check if character is uppercase amp_1 = (asky-54) # assign amplitude else : # else character must be lowercase amp_1 = (asky-60) # assign amplitude elif sb_1[b_1] == '-' : amp_1 = -90 # character for amp = 0 elif sb_1[b_1] == '>' : amp_1 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_1 = blueDuration + 1 # set notetime_1 > blueduration scoreText_1 = '' # clear scoreText_1 if notetime_1 >= blueDuration : break # break out of the loop if amp_1 > 0 : # if note exists (amplitude > 0) dur_1 = durlist_1[c_1] # get duration from durlist amp_1 = (amp_1*1.6)-89 # move amp value to correct dbfs range (max=1) note_1 = notelist_1[c_1] # get note from notelist sp_1 = splist_1[c_1] # get sp from splist pana_1 = panalist_1[c_1] # get pana from panalist panb_1 = panblist_1[c_1] # get panb from panblist attm_1 = attmlist_1[c_1] # get attm from attmlist atcv_1 = atcvlist_1[c_1] # get atcv from atcvlist nvpa_1 = nvpalist_1[c_1] # get nvpa from nvpalist nvca_1 = nvcalist_1[c_1] # get nvca from nvcalist c_1 = c_1 + 1 # note iterator variable scoreText_1 += "i2 "+str(notetime_1-attm_1)+" "+str(dur_1)+" "+str(note_1)+" "+str(amp_1)+" "+str(sp_1)+" "+str(pana_1)+" "+str(panb_1)+" "+str(attm_1)+" "+str(atcv_1)+" "+str(nvpa_1)+" "+str(nvca_1)+" \n" notetime_1 = notetime_1 + subeat_1 # increment notetime by subeat time value i_1 = i_1 + 1 # loop iterator increment c_1 = 0 # note iterator reset score = scoreText_1 # score output 11.0 110.0 Phad11-2 -16738666 2 scoreText_1 = "" # scoreText_1 is cleared bart_1 = 11.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_1 = ['f','f','-','e','f','g','i','-','f','f','f'] # rhythm bpb_1 = len(rhythmr0_1) # beats per bar beat_1 = bart_1/bpb_1 # time of beat in seconds notetime_1 = 0 # set intitial note start time durlist_1 = [2.15,3.3,2.35,1.65,1.7,3.6,1.35,1.4,1.6] # note duration list notelist_1 = [31,37, 35,37,39,36, 32,37,30] # note list splist_1 = [1,1, 1,1,1,1 ,1,1,1] # subpatch panalist_1 = [.6,.2, .6,-.2,.3,-.1, .8,.1,-.7] # pana list panblist_1 = [.4,.1, .7,-.4,.2,-.7, .4,-.1,-.8] # panb list attmlist_1 = [.02,.02,.02,.02,.02,.02,.02,.02,.02] # attack time list atcvlist_1 = [0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_1 = [1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_1 = [4,3,3.5,3.3,3.5,2.8,3.3,3.5,2.9] # amplitude envelope curve a list i_1 = 0 # loop iteration counter c_1 = 0 # note iteration counter while i_1 < 1 : # loop until end of soundObject for a_1 in range(bpb_1) : # loop through the items in the rhythm list sb_1 = rhythmr0_1[a_1] # sb is current item in the rhythm list subeat_1 = beat_1/len(sb_1) # subeat is the number of sub-beats in the beat for b_1 in range(len(sb_1)) : # loop through the items in the beat string if sb_1[b_1].isalnum() : # check if character is alphanumeric asky = ord(sb_1[b_1]) # get ascii number of the character if sb_1[b_1].isdigit() : # check if character is numeric amp_1 = (asky-47) # assign amplitude elif sb_1[b_1].isupper() : # check if character is uppercase amp_1 = (asky-54) # assign amplitude else : # else character must be lowercase amp_1 = (asky-60) # assign amplitude elif sb_1[b_1] == '-' : amp_1 = -90 # character for amp = 0 elif sb_1[b_1] == '>' : amp_1 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_1 = blueDuration + 1 # set notetime_1 > blueduration scoreText_1 = '' # clear scoreText_1 if notetime_1 >= blueDuration : break # break out of the loop if amp_1 > 0 : # if note exists (amplitude > 0) dur_1 = durlist_1[c_1] # get duration from durlist amp_1 = (amp_1*1.6)-89 # move amp value to correct dbfs range (max=1) note_1 = notelist_1[c_1] # get note from notelist sp_1 = splist_1[c_1] # get sp from splist pana_1 = panalist_1[c_1] # get pana from panalist panb_1 = panblist_1[c_1] # get panb from panblist attm_1 = attmlist_1[c_1] # get attm from attmlist atcv_1 = atcvlist_1[c_1] # get atcv from atcvlist nvpa_1 = nvpalist_1[c_1] # get nvpa from nvpalist nvca_1 = nvcalist_1[c_1] # get nvca from nvcalist c_1 = c_1 + 1 # note iterator variable scoreText_1 += "i2 "+str(notetime_1-attm_1)+" "+str(dur_1)+" "+str(note_1)+" "+str(amp_1)+" "+str(sp_1)+" "+str(pana_1)+" "+str(panb_1)+" "+str(attm_1)+" "+str(atcv_1)+" "+str(nvpa_1)+" "+str(nvca_1)+" \n" notetime_1 = notetime_1 + subeat_1 # increment notetime by subeat time value i_1 = i_1 + 1 # loop iterator increment c_1 = 0 # note iterator reset score = scoreText_1 # score output 13.0 121.0 Phad13-2 -6946666 2 scoreText_1 = "" # scoreText_1 is cleared bart_1 = 13.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_1 = ['g','f','-','e','f','g','f','-','d','0','0','-','-'] # rhythm bpb_1 = len(rhythmr0_1) # beats per bar beat_1 = bart_1/bpb_1 # time of beat in seconds notetime_1 = 0 # set intitial note start time durlist_1 = [2.15,3.3, 2.35,1.65,1.7,3.6, 7,4,3] # note duration list notelist_1 = [29,37, 32,31,33,35, 30,33,30] # note list splist_1 = [2,2, 2,2,2,2 ,2,2,2] # subpatch panalist_1 = [.6,.3, .8,-.2,.38,-.11, .8,.5,.3] # pana list panblist_1 = [.4,.4, .7,-.3,.25,-.37, .3,.2,.1] # panb list attmlist_1 = [.02,.02, .02,.02,.02,.02, .02,.02,.02] # attack time list atcvlist_1 = [0,0, 0,0,0,0, 0,0,0] # attack curve list nvpalist_1 = [1,1, 1,1,1,1, 1,1,1] # amplitude envelope point a list nvcalist_1 = [3.6,3, 3.5,3.3,3.5,2.8, 3.3,3.5,2.9] # amplitude envelope curve a list i_1 = 0 # loop iteration counter c_1 = 0 # note iteration counter while i_1 < 1 : # loop until end of soundObject for a_1 in range(bpb_1) : # loop through the items in the rhythm list sb_1 = rhythmr0_1[a_1] # sb is current item in the rhythm list subeat_1 = beat_1/len(sb_1) # subeat is the number of sub-beats in the beat for b_1 in range(len(sb_1)) : # loop through the items in the beat string if sb_1[b_1].isalnum() : # check if character is alphanumeric asky = ord(sb_1[b_1]) # get ascii number of the character if sb_1[b_1].isdigit() : # check if character is numeric amp_1 = (asky-47) # assign amplitude elif sb_1[b_1].isupper() : # check if character is uppercase amp_1 = (asky-54) # assign amplitude else : # else character must be lowercase amp_1 = (asky-60) # assign amplitude elif sb_1[b_1] == '-' : amp_1 = -90 # character for amp = 0 elif sb_1[b_1] == '>' : amp_1 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_1 = blueDuration + 1 # set notetime_1 > blueduration scoreText_1 = '' # clear scoreText_1 if notetime_1 >= blueDuration : break # break out of the loop if amp_1 > 0 : # if note exists (amplitude > 0) dur_1 = durlist_1[c_1] # get duration from durlist amp_1 = (amp_1*1.6)-89 # move amp value to correct dbfs range (max=1) note_1 = notelist_1[c_1] # get note from notelist sp_1 = splist_1[c_1] # get sp from splist pana_1 = panalist_1[c_1] # get pana from panalist panb_1 = panblist_1[c_1] # get panb from panblist attm_1 = attmlist_1[c_1] # get attm from attmlist atcv_1 = atcvlist_1[c_1] # get atcv from atcvlist nvpa_1 = nvpalist_1[c_1] # get nvpa from nvpalist nvca_1 = nvcalist_1[c_1] # get nvca from nvcalist c_1 = c_1 + 1 # note iterator variable scoreText_1 += "i2 "+str(notetime_1-attm_1)+" "+str(dur_1)+" "+str(note_1)+" "+str(amp_1)+" "+str(sp_1)+" "+str(pana_1)+" "+str(panb_1)+" "+str(attm_1)+" "+str(atcv_1)+" "+str(nvpa_1)+" "+str(nvca_1)+" \n" notetime_1 = notetime_1 + subeat_1 # increment notetime by subeat time value i_1 = i_1 + 1 # loop iterator increment c_1 = 0 # note iterator reset score = scoreText_1 # score output 11.0 173.0 Phad12-3 -6908416 2 scoreText_1 = "" # scoreText_1 is cleared bart_1 = 11.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_1 = ['g','-','-','----edc','baZYXWV','-','-','-','-','-','-'] # rhythm bpb_1 = len(rhythmr0_1) # beats per bar beat_1 = bart_1/bpb_1 # time of beat in seconds notetime_1 = 0 # set intitial note start time durlist_1 = [3.25,.25,.25,.25,.25, .25,.25,.25,.25,.25, .25,.25,.25,.25,.25, .85,.25,.25,.25,.25, .25,.25,.25,.25,.25,2.0] # note duration list notelist_1 = [38, 57,57,57,57,57,57,57,57,57,57, 38,38,38,38] # note list splist_1 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] # subpatch panalist_1 = [-.4,.6,-.3,.7,-.2, .2,-.4,.4,-.3,.3, -.5,.5,-.1,.4,-.6, .8,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1,.2] # pana list panblist_1 = [-.6,.6,-.3,.7,-.2, .2,-.4,.4,-.3,.3, -.5,.5,-.1,.4,-.6, .85,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1,.24] # panb list attmlist_1 = [.06,.01,.01,.01,.01, .01,.01,.01,.01,.01, .01,.01,.01,.01,.01, .3,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01] # attack time list atcvlist_1 = [0, 0,0,0,0,0,0,0,0 ,0,0,0,0,0,0,-5, 0,0,0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_1 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_1 = [4,4,4,4,4, 4,4,4,4,4, 4,4,4,4,4, 1.7,4,4,4,4,4,4,4,4,4,4,4] # amplitude envelope curve a list i_1 = 0 # loop iteration counter c_1 = 0 # note iteration counter while i_1 < 1 : # loop until end of soundObject for a_1 in range(bpb_1) : # loop through the items in the rhythm list sb_1 = rhythmr0_1[a_1] # sb is current item in the rhythm list subeat_1 = beat_1/len(sb_1) # subeat is the number of sub-beats in the beat for b_1 in range(len(sb_1)) : # loop through the items in the beat string if sb_1[b_1].isalnum() : # check if character is alphanumeric asky = ord(sb_1[b_1]) # get ascii number of the character if sb_1[b_1].isdigit() : # check if character is numeric amp_1 = (asky-47) # assign amplitude elif sb_1[b_1].isupper() : # check if character is uppercase amp_1 = (asky-54) # assign amplitude else : # else character must be lowercase amp_1 = (asky-60) # assign amplitude elif sb_1[b_1] == '-' : amp_1 = -90 # character for amp = 0 elif sb_1[b_1] == '>' : amp_1 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_1 = blueDuration + 1 # set notetime_1 > blueduration scoreText_1 = '' # clear scoreText_1 if notetime_1 >= blueDuration : break # break out of the loop if amp_1 > 0 : # if note exists (amplitude > 0) dur_1 = durlist_1[c_1] # get duration from durlist amp_1 = (amp_1*1.6)-89 # move amp value to correct dbfs range (max=1) note_1 = notelist_1[c_1] # get note from notelist sp_1 = splist_1[c_1] # get sp from splist pana_1 = panalist_1[c_1] # get pana from panalist panb_1 = panblist_1[c_1] # get panb from panblist attm_1 = attmlist_1[c_1] # get attm from attmlist atcv_1 = atcvlist_1[c_1] # get atcv from atcvlist nvpa_1 = nvpalist_1[c_1] # get nvpa from nvpalist nvca_1 = nvcalist_1[c_1] # get nvca from nvcalist c_1 = c_1 + 1 # note iterator variable scoreText_1 += "i2 "+str(notetime_1-attmlist_1[c_1])+" "+str(dur_1)+" "+str(note_1)+" "+str(amp_1)+" "+str(sp_1)+" "+str(pana_1)+" "+str(panb_1)+" "+str(attm_1)+" "+str(atcv_1)+" "+str(nvpa_1)+" "+str(nvca_1)+" \n" notetime_1 = notetime_1 + subeat_1 # increment notetime by subeat time value i_1 = i_1 + 1 # loop iterator increment c_1 = 0 # note iterator reset score = scoreText_1 # score output 8.0 184.0 Phad11-3 -16738666 2 scoreText_1 = "" # scoreText_1 is cleared bart_1 = 8.0 # duration of bar in seconds ** THIS NUMBER SHOULD BE AN INTEGER EXPRESSED AS FLOATING POINT ** rhythmr0_1 = ['j','-','-','--dcd','edef-','--dcd','cedf-','-'] # rhythm bpb_1 = len(rhythmr0_1) # beats per bar beat_1 = bart_1/bpb_1 # time of beat in seconds notetime_1 = 0 # set intitial note start time durlist_1 = [3.25, .75,.65,.75,.65,.75,.7,1.65, .75,.65,.75,.65,.75,.7,1.65, .25,.25,.25,.25,.25, .25,.25,.25,.25,.25,2.0] # note duration list notelist_1 = [32, 50,53,55,58,60,61,60, 61,58,55,50,49,47,44, 52,52,52,52, 48,47,46,45,44,32] # note list splist_1 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # subpatch panalist_1 = [-.4,.6,-.3,.7,-.2, .2,-.4,.4,-.3,.3, -.5,.5,-.1,.4,-.6, .8,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1,.2] # pana list panblist_1 = [-.6,.6,-.3,.7,-.2, .2,-.4,.4,-.3,.3, -.5,.5,-.1,.4,-.6, .85,-.3,.4,-.4,.2, -.2,.3,-.3,.1,-.1,.24] # panb list attmlist_1 = [.16,.01,.01,.01,.01, .01,.01,.01,.01,.01, .01,.01,.01,.01,.01, .01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01,.01] # attack time list atcvlist_1 = [0, 0,0,0,0,0,0,0,0 ,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0] # attack curve list nvpalist_1 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] # amplitude envelope point a list nvcalist_1 = [4,4,4,4,4, 4,4,4,4,4, 4,4,4,4,4, 4,4,4,4,4,4,4,4,4,4,4,4] # amplitude envelope curve a list i_1 = 0 # loop iteration counter c_1 = 0 # note iteration counter while i_1 < 1 : # loop until end of soundObject for a_1 in range(bpb_1) : # loop through the items in the rhythm list sb_1 = rhythmr0_1[a_1] # sb is current item in the rhythm list subeat_1 = beat_1/len(sb_1) # subeat is the number of sub-beats in the beat for b_1 in range(len(sb_1)) : # loop through the items in the beat string if sb_1[b_1].isalnum() : # check if character is alphanumeric asky = ord(sb_1[b_1]) # get ascii number of the character if sb_1[b_1].isdigit() : # check if character is numeric amp_1 = (asky-47) # assign amplitude elif sb_1[b_1].isupper() : # check if character is uppercase amp_1 = (asky-54) # assign amplitude else : # else character must be lowercase amp_1 = (asky-60) # assign amplitude elif sb_1[b_1] == '-' : amp_1 = -90 # character for amp = 0 elif sb_1[b_1] == '>' : amp_1 = 1 # character for amp = 1 else : # error trap for invalid rhythym list alert('Invalid rhythm list!') # show error alert notetime_1 = blueDuration + 1 # set notetime_1 > blueduration scoreText_1 = '' # clear scoreText_1 if notetime_1 >= blueDuration : break # break out of the loop if amp_1 > 0 : # if note exists (amplitude > 0) dur_1 = durlist_1[c_1] # get duration from durlist amp_1 = (amp_1*1.6)-89 # move amp value to correct dbfs range (max=1) note_1 = notelist_1[c_1] # get note from notelist sp_1 = splist_1[c_1] # get sp from splist pana_1 = panalist_1[c_1] # get pana from panalist panb_1 = panblist_1[c_1] # get panb from panblist attm_1 = attmlist_1[c_1] # get attm from attmlist atcv_1 = atcvlist_1[c_1] # get atcv from atcvlist nvpa_1 = nvpalist_1[c_1] # get nvpa from nvpalist nvca_1 = nvcalist_1[c_1] # get nvca from nvcalist c_1 = c_1 + 1 # note iterator variable scoreText_1 += "i2 "+str(notetime_1-attmlist_1[c_1])+" "+str(dur_1)+" "+str(note_1)+" "+str(amp_1)+" "+str(sp_1)+" "+str(pana_1)+" "+str(panb_1)+" "+str(attm_1)+" "+str(atcv_1)+" "+str(nvpa_1)+" "+str(nvca_1)+" \n" notetime_1 = notetime_1 + subeat_1 # increment notetime by subeat time value i_1 = i_1 + 1 # loop iterator increment c_1 = 0 # note iterator reset score = scoreText_1 # score output 11.0 66.0 Granny12a -6946816 2 ;inst strt dur noteA noteB noteC sp denA denB denC ampoff gdurA gdurB gdurC pana panb ampA ampB poffA poffB poffC atime sustime atx susx decx i3 0 5 62 68 74 0 80 20 60 200 .05 .005 .01 -1 1 2000 5000 20 100 10 .1 .8 -2 2 0 i3 5 6 62 74 68 0 20 40 45 40 .02 .04 .02 .3 -.5 1000 3000 20 60 50 .3 .5 3 -5 0 11.0 77.0 Granny11a -16738816 2 ;inst strt dur noteA noteB noteC sp denA denB denC ampoff gdurA gdurB gdurC pana panb ampA ampB poffA poffB poffC atime sustime atx susx decx i3 0 5 61 67 72 1 80 50 50 100 .05 .05 .06 -1 -.7 2000 1000 192 212 80 2 .3 .2 2 -3 i3 5 6 72 72 67 1 20 40 20 40 .02 .04 .005 .3 -.5 1000 3500 20 55 55 .3 .8 0 0 3 11.0 88.0 Granny13a -16777066 2 ;inst strt dur noteA noteB noteC sp denA denB denC ampoff gdurA gdurB gdurC pana panb ampA ampB poffA poffB poffC atime sustime atx susx decx i3 0 5 63 69 76 2 80 20 60 200 .05 .005 .01 -1 1 2000 5000 20 100 10 .1 .8 -2 2 0 i3 5 6 63 76 69 2 5 40 45 40 .02 .04 .02 .3 -.5 1000 4500 20 60 50 .3 .5 3 -5 3 true 0.0 144.0 false true false PCH MIDI 12TET 261.62558 2.0 1.0 1.0594631 1.122462 1.1892071 1.2599211 1.3348398 1.4142135 1.4983071 1.587401 1.6817929 1.7817974 1.8877486