p0 += ji.r(2, 1) p1 += ji.r(2, 1) p2 = p1 + ji.r(4, 1) p3 = p0 + ji.r(4, 1) PITCHES_POSITIVE.append(p0) PITCHES_POSITIVE.append(p2) PITCHES_NEGATIVE.append(p1) PITCHES_NEGATIVE.append(p3) if __name__ == "__main__": import pyteqNew as pyteq for idx, pitches in enumerate([PITCHES_POSITIVE, PITCHES_NEGATIVE]): if idx < 1: name = "Positive" else: name = "Negative" for p_idx, pitch in enumerate(sorted(pitches)): local_name = name + str(p_idx) melody = [ pyteq.MidiTone(ji.JIPitch(pitch, multiply=CONCERT_PITCH), 4, 4, volume=1) ] harp_range = tuple(n for n in range(20, 125)) f = pyteq.Pianoteq(melody, available_midi_notes=harp_range) f.export2wav(local_name, preset='"Erard Player"')
if __name__ == "__main__": import pyteqNew as pyteq for idx, pitches in enumerate(GROUPS + [PITCHES]): if idx < 4: name = "Group{0}".format(idx) delay = 0.5 duration = 2 else: name = "AllPitches" delay = 1 duraton = 1 melody = tuple( pyteq.MidiTone(ji.JIPitch(p, multiply=CONCERT_PITCH), delay, duration) for p in pitches) for p in melody: print(p.pitch.freq) unavailable_pitches = ( 30, 32, 34, 42, 44, 46, 73, 75, 78, 80,