context = window MIX_MODES = context.JK.MIX_MODES SessionActions = context.SessionActions ReactCSSTransitionGroup = React.addons.CSSTransitionGroup; @SessionMyTracks = React.createClass({ mixins: [@SessionMyTracksMixin, Reflux.listenTo(@SessionMyTracksStore,"onInputsChanged"), Reflux.listenTo(@AppStore,"onAppInit")] goToFtue: (e) -> e.preventDefault() SessionActions.leaveSession.trigger({location: '/client#/account/audio'}) render: () -> content = null tracks = [] 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

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