Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does 'b' work? #198

Closed
OrangeTux opened this issue Dec 21, 2019 · 13 comments
Closed

How does 'b' work? #198

OrangeTux opened this issue Dec 21, 2019 · 13 comments

Comments

@OrangeTux
Copy link

I'm not sure if b is broken or I use it wrong.

As I understand b 'bounces' back and forth over a sequence which boundaries are given by the parameters of b. So the following example should output 1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 1 and so on:

1B7
.1.

Is my understanding of b correct? If so, than b seem to be broken. The output of b doesn't change. Using Orca 0.7.1 on Ubuntu

@nlebellier
Copy link
Contributor

Hi,

if your B is in capital it should work as you said. Otherwise you need to bang your b operator.

@neauoire
Copy link
Member

neauoire commented Dec 21, 2019

You got it right, and it's not broken.
I think the best way to understand how B works is to try and visualize the result, try:

7B4.
.3.X

If you change the first port, you'll notice that the X output goes back and forth. Alternatively, you can automate it with something like:

#.incr.#....#.clock.#
.....................
I8..........I8.......
6B4.........4B4......
.2.X.........0.X.....

You can run this program to see the way B works in more details too.

..Cf..fCf
xVd..yV9.
.........
..3Kx.y..
2KxydB9..
..d9X4...

@nlebellier
Copy link
Contributor

nlebellier commented Dec 21, 2019

well i clone the latest version under windows 10 and it seems to be stuck for me too. So @OrangeTux you may be right...

by the way, I always fight to find the number version of Orca. Why not display it obviously ?
the shortcut is cmd + r right ? The About menu could be a lovely place no ?

@neauoire
Copy link
Member

There is no menu for browser-version users and OSX users, but I could display the version number a few more frames.

@nlebellier
Copy link
Contributor

Ok i miss the change of the b behaviour (the initials B.B.) but i must admit i don't catch how it works.

@neauoire
Copy link
Member

It works just like before, but it takes a value as input, which can be a clock(C8 in B4) will work the same as before, or a I8 if you don't want to sync with the clock.

@nlebellier
Copy link
Contributor

ok but now the B operator needs a friend to work, before it was independent. So B "bounce" alone is just a substraction operator right in absolute value ? So the "bounce" name is quiet weird no ?

@neauoire
Copy link
Member

It does need a friend to work now yes, how would you call it now? I'm not against renaming it. If you have a better name that starts with B, I'll take it :)

@nlebellier
Copy link
Contributor

nlebellier commented Dec 25, 2019

Well B as Between : returns the absolute value of the subtraction between the two terms

@neauoire
Copy link
Member

neauoire commented Dec 25, 2019

Perfect :) I like it!, would you like to add it yourself to library.js, and make a pull request?

@nlebellier
Copy link
Contributor

Done !

@neauoire
Copy link
Member

thanks!

@OrangeTux
Copy link
Author

Thanks for all the info!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants