summaryrefslogtreecommitdiff
path: root/app/client/modules
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-07 20:41:34 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-07 20:41:34 +0200
commit34df2ca203ea934537edb490b8cb632cee650f65 (patch)
tree1e05e2758c1c41abd13a82e62ff509d93a208173 /app/client/modules
parentf9ad8a4c20554bafaa5961ff44af0cec3f65fdb0 (diff)
send as png
Diffstat (limited to 'app/client/modules')
-rw-r--r--app/client/modules/pix2wav/pix2wav.tasks.js2
-rw-r--r--app/client/modules/pix2wav/views/pix2wav.live.js20
2 files changed, 19 insertions, 3 deletions
diff --git a/app/client/modules/pix2wav/pix2wav.tasks.js b/app/client/modules/pix2wav/pix2wav.tasks.js
index 95c26f2..b273346 100644
--- a/app/client/modules/pix2wav/pix2wav.tasks.js
+++ b/app/client/modules/pix2wav/pix2wav.tasks.js
@@ -12,7 +12,7 @@ export const live_task = (sequence, checkpoint) => dispatch => {
dataset: sequence,
checkpoint,
opt: {
- poll_delay: 1.0,
+ poll_delay: 0.2,
}
}
console.log(task)
diff --git a/app/client/modules/pix2wav/views/pix2wav.live.js b/app/client/modules/pix2wav/views/pix2wav.live.js
index 551bcda..bc34356 100644
--- a/app/client/modules/pix2wav/views/pix2wav.live.js
+++ b/app/client/modules/pix2wav/views/pix2wav.live.js
@@ -3,7 +3,7 @@ import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import {
- ParamGroup, Param, Player,
+ ParamGroup, Param, Player, Group,
Slider, Select, Button, Loading
} from '../../../common/'
@@ -14,6 +14,8 @@ import * as queueActions from '../../../queue/queue.actions'
import * as pix2wavTasks from '../pix2wav.tasks'
import * as pix2wavActions from '../pix2wav.actions'
+import * as playerActions from '../../../live/player'
+
class Pix2WavLive extends Component {
constructor(props){
super()
@@ -83,7 +85,21 @@ class Pix2WavLive extends Component {
// console.log('sequence', this.props.opt)
return (
<div className='app pix2wav centered'>
- <Player width={256} height={256} />
+ <div className='row'>
+ <div className='column'>
+ <Player width={256} height={256} />
+ </div>
+ <div className='params column audioParams'>
+ <Group title='Audio playback'>
+ <Button title='Start playback'
+ onClick={() => playerActions.startSynthesizing()}
+ >Start</Button>
+ <Button title='Stop playback'
+ onClick={() => playerActions.stopSynthesizing()}
+ >Stop</Button>
+ </Group>
+ </div>
+ </div>
<div className='params row'>
<div className='column'>
<ParamGroup