Tsunami Fade issue

I’m having an issue implementing the fade function on the Tsunami. I’ve written a python serial program. My steps are:

Load track and assign to an output

Set track volume to initial volume

Send the fade function (track, end volume, milliseconds, flag.

there is no sound and the program ends immediately.

tia

It might help to share the code…how long is the track and what ms is being sent?

here are relevant parts of code:

import TsunamiCoreLite as tc # Core Tsunami Functions
import TsunamiFunctions as tf
import pygame as pg
import time

outputs=8
port = “/dev/ttyUSB0” # USB port for serial communications
tc.OpenPort(port)
tc.Info()

put tsunami in known state

tc.StopAll()
for x in range (outputs):
tc.SampleRate(x, 0)
####################### start of composition ###############################################
tf.load_routing(AllFire)
tc.ResumeAll()
tf.Fader(200,(-70),(-15),2000,False)

###############################################def load_routing(trackoutputarray):
for track_number, output in trackoutputarray:
tc.Load(track_number,output)

###############################################

def Fader(track,StartVol,EndVol,Fadetime,Off):
tc.TrackVolume(track, StartVol)
tc.Fade(track, EndVol,Fadetime,Off)

###############################################

def Fade(track, gain, fade, stop):
global serialControl
serialControl.trackFade(track, gain, fade, stop)

def trackFade(self, track, gain, time, stop):       
    trackBytesLSB, trackBytesMSB = littleEndianSplit(track)
    gainBytesLSB,  gainBytesMSB  = littleEndianSplit(gain)
    timeBytesLSB,  timeBytesMSB  = littleEndianSplit(time)
    stopBytes = 0x01 if bool(stop) else 0x00
    self.sClass.write([self.SOM1, self.SOM2, 0x0c, CMD_TRACK_FADE, trackBytesLSB, trackBytesMSB, gainBytesLSB, gainBytesMSB, timeBytesLSB, timeBytesMSB, stopBytes, self.EOM])

I can’t help you with the python, but in your initial post, nowhere in your steps is:

start the track