mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 22:35:15 -04:00
working
This commit is contained in:
@@ -16,7 +16,7 @@ export function steady(value) {
|
||||
}
|
||||
|
||||
export const signal = (func) => {
|
||||
const query = (state) => [new Hap(undefined, state.span, func(state.span.begin))];
|
||||
const query = (state) => [new Hap(undefined, state.span, func(state.span.begin.valueOf()))];
|
||||
return new Pattern(query);
|
||||
};
|
||||
|
||||
@@ -152,7 +152,10 @@ export const itri2 = fastcat(isaw2, saw2);
|
||||
*
|
||||
* @return {Pattern}
|
||||
*/
|
||||
export const time = signal(id);
|
||||
export const time = signal((x) => {
|
||||
console.info(typeof x)
|
||||
return x
|
||||
});
|
||||
|
||||
/**
|
||||
* The mouse's x position value ranges from 0 to 1.
|
||||
|
||||
Reference in New Issue
Block a user