pysynth/temp.py
def write_wave(data, seconds):

    """
    Writes a specified amount of wave data:
    :param data: Data to write
    :param seconds: Seconds to write
    """

    # Open the wave file:

    wav = wave.open('blorck.wav', 'wb')

    wav.setnchannels(1)
    wav.setsampwidth(4)
    wav.setframerate(44100.0)

    iter(data)

    for i in range(44100*seconds):

        value = next(data)

        wav.writeframesraw(struct.pack('<f', value))

    wav.close()

    Writes a specified amount of wave data:
    :param data: Data to write
    :param seconds: Seconds to write
    
Writes a specified amount of wave data.
Writes a specified amount of wave data .
def write_wave(data, seconds):
    wav = wave.open('blorck.wav', 'wb')
    wav.setnchannels(1)
    wav.setsampwidth(4)
    wav.setframerate(44100.0)
    iter(data)
    for i in range(44100*seconds):
        value = next(data)
        wav.writeframesraw(struct.pack('<f', value))
    wav.close()
def write_wave ( data , seconds ) : wav = wave . open ( 'blorck.wav' , 'wb' ) wav . setnchannels ( 1 ) wav . setsampwidth ( 4 ) wav . setframerate ( 44100.0 ) iter ( data ) for i in range ( 44100 * seconds ) : value = next ( data ) wav . writeframesraw ( struct . pack ( '<f' , value ) ) wav . close ( )
Writes a specified amount of wave data:
Writes a specified amount of wave data :
"""
    Writes a specified amount of wave data:
    :param data: Data to write
    :param seconds: Seconds to write
    """ # Open the wave file:

data
Data to write
Data to write
seconds
Seconds to write
Seconds to write