context = window MIX_MODES = context.JK.MIX_MODES SessionActions = context.SessionActions @SessionMyTracks = React.createClass({ mixins: [@SessionMyTracksMixin, Reflux.listenTo(@SessionMyTracksStore,"onInputsChanged"), Reflux.listenTo(@AppStore,"onAppInit"), Reflux.listenTo(@ConfigureTracksStore, "onConfigureTracksChanged")] goToFtue: (e) -> e.preventDefault() SessionActions.leaveSession.trigger({location: '/client#/account/audio'}) render: () -> content = null videoTutorialLink = null tracks = [] if @state.session?.preppingVstEnable delayVstEnable = `
Enabling VSTs ...
` else videoTutorialLink = `` if @state.tracks.length > 0 for track in @state.tracks track.mode = MIX_MODES.PERSONAL tracks.push(``) if @state.chat @state.chat.mode = @props.mode tracks.push(``) else if @state.session? && @state.session.inSession() content = `

You have not set up any inputs for your instrument or vocals. If you want to hear yourself play through the JamKazam app, and let the app mix your live playing with JamTracks, or with other musicians in online sessions, click here now.

` `

my live tracks

{videoTutorialLink}
{delayVstEnable}
{content} {tracks}
` getInitialState:() -> {tracks:[], session: null, chat:null} onAppInit: (app) -> @app = app })