Search found 13 matches

by fearless_fool
Sat Aug 17, 2013 6:26 am
Forum: Nyquist
Topic: EXTRACT and AT don't interact as expected
Replies: 10
Views: 2434

Re: EXTRACT and AT don't interact as expected

Yep, I've re-read that section a few times! :) It's clear that anchoring a (sim ...) at time 0.0 makes all the difference, but I didn't find that in the docs. Thanks!
by fearless_fool
Fri Aug 16, 2013 8:21 pm
Forum: Nyquist
Topic: EXTRACT and AT don't interact as expected
Replies: 10
Views: 2434

Re: EXTRACT and AT don't interact as expected

Okay, I'll surrender, but only after one more comment. If I have a behavior that starts at 10 and ends at 11, what's the snd-extent of (extract 10.1 11.1 beh)? That depends on *warp*. If *warp* has been shifted as in this example, then SND-EXTENT of (EXTRACT 10.1 11.1 beh) will be undefined. I will ...
by fearless_fool
Fri Aug 16, 2013 5:38 pm
Forum: Nyquist
Topic: EXTRACT and AT don't interact as expected
Replies: 10
Views: 2434

Re: EXTRACT and AT don't interact as expected

EXTRACT returns the portion of beh relative to the current *warp*. I think I'm getting hung up on the definition of "current" (or in more computer science-y terms, the binding scope). When I do (at 10 (osc 66)) I assumed the contract of (AT n beh) is to temporarily bind *warp* to a shifted value of...
by fearless_fool
Fri Aug 16, 2013 1:20 pm
Forum: Nyquist
Topic: EXTRACT and AT don't interact as expected
Replies: 10
Views: 2434

Re: EXTRACT and AT don't interact as expected

And as usual, I should show my environment:
  • Mac OS X v 10.8.4 (Mountain Lion)
    NyquistIDE (jNyqIDE) v 2.0
    XLISP version 2.0
    Nyquist Version 3.08
by fearless_fool
Fri Aug 16, 2013 1:17 pm
Forum: Nyquist
Topic: EXTRACT and AT don't interact as expected
Replies: 10
Views: 2434

EXTRACT and AT don't interact as expected

I'm stumped about the interaction of (extract ...) and (at ...) and (snd-extent ...). First, here's a convenience function that just calls snd-extent: >> (defun x (b) (snd-extent b *autonorm-max-samples*)) => X Let's test it: >> (x (osc 66)) => (0 1) As expected, (osc 66) has start time of 0 and and...
by fearless_fool
Tue Aug 13, 2013 10:28 am
Forum: Nyquist
Topic: killing nyquist with extract
Replies: 10
Views: 4108

Re: killing nyquist with extract

Yep -- that all makes sense now. I mistakenly believed that (setq x-trimmed (extract 0 0.25 (cue x-snd))) would create a closure that captured the current state of the globals (*start*, *stop*, *warp*, etc) and defer the actual extracting until later. (This is my punishment for knowing too much abou...
by fearless_fool
Mon Aug 12, 2013 2:21 am
Forum: Nyquist
Topic: when you evaluate a behavior is important...
Replies: 2
Views: 2251

when you evaluate a behavior is important...

This is a little note for anyone just getting started in Nyquist. Like me. Perhaps this will save somebody some confusion and astonishment. Consider the following code evaluated in Nyquist: (setq envelope-var (pwl 1 1 1)) (display "envelope-var" (snd-extent (stretch 4.0 envelope-var) 1000000)) (defu...
by fearless_fool
Mon Aug 12, 2013 2:02 am
Forum: Nyquist
Topic: killing nyquist with extract
Replies: 10
Views: 4108

Re: killing nyquist with extract

Steve: great sleuth work. Let me know if there's a way for me to track the bug post.
by fearless_fool
Sun Aug 11, 2013 11:24 pm
Forum: Nyquist
Topic: killing nyquist with extract
Replies: 10
Views: 4108

Re: killing nyquist with extract

Steve:

I'm glad to know I wasn't doing anything really incredibly stupid. For now, having the (sim ...) workaround is good enough for me, but keep me posted when/if you uncover anything.

2^n thanks.

- Rob
by fearless_fool
Sun Aug 11, 2013 10:17 pm
Forum: Nyquist
Topic: killing nyquist with extract
Replies: 10
Views: 4108

Re: killing nyquist with extract

Oops -- my bad for not describing the environment. I'm running the Nyquist IDE (no Audacity): Mac OS X v 10.8.4 (Mountain Lion) NyquistIDE (jNyqIDE) v 2.0 XLISP version 2.0 Nyquist Version 3.08 The code I gave is verbatim from a file loaded into Nyquist via the (load 'filename') command. And when th...