coerce in correct place
This commit is contained in:
parent
7dfd7dbcdc
commit
74e27ca94f
1 changed files with 4 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ export function steady(value) {
|
|||
}
|
||||
|
||||
export const signal = (func) => {
|
||||
const query = (state) => [new Hap(undefined, state.span, func(state.span.begin.valueOf()))];
|
||||
const query = (state) => [new Hap(undefined, state.span, func(state.span.begin))];
|
||||
return new Pattern(query);
|
||||
};
|
||||
|
||||
|
|
@ -152,7 +152,9 @@ export const itri2 = fastcat(isaw2, saw2);
|
|||
*
|
||||
* @return {Pattern}
|
||||
*/
|
||||
export const time = signal(id);
|
||||
export const time = signal(x => {
|
||||
return x.valueOf()
|
||||
});
|
||||
|
||||
/**
|
||||
* The mouse's x position value ranges from 0 to 1.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue