Saving a .wav file

How to save a tune in scamp in .wav format

see: Can we send SCAMP output to a .wav file?

Thanks :slight_smile:

from scamp import *
playback_settings.recording_file_path = “rec.wav”
s = Session()

playback_settings.recording_file_path = “GUITAR_TUNE/rec.wav”

s.tempo = 120

guitar = s.new_part(‘guitar’)

a = b = 1

count = 0

while count!=3:

guitar.play_note(48+a,0.7,0.25)

a,b = b, (a+b)%15

count+=1

This was my code snippet but it is not saving the file.

You have multiple playback_settings.recording_file_path statements. Probably only the first one would work?