World: r3wp
[rebcode] Rebcode discussion
older newer | first last |
Rebolek 20-Feb-2007 [1600] | Gregg that binaural beat thing looks very interesting. I was interested in in ELF (extreme low frequencies) some time ago, but I though you need some pretty expensive equipment for it (as normal speakers cannot play 7Hz wave very well, but after reading a book by V. Marek, I found, that 7Hz frequency can be easily simulated by using one wave of frequency X and second wave of frequency X+7Hz. The 7Hz freq. is then created thanks to modulation, regardless on equipment. It's very interesting, unfortunately I had no time to get deeper into this field. |
Gregg 20-Feb-2007 [1601] | Yes, interesting, and with good headphones you can get subsoncis; SBAGen even offers boost options, by frequency, so you can tailor the compensation to your equipment. |
Rebolek 20-Feb-2007 [1602] | I've heard that Enya's albums are 'enhanced' by some ELFs, but this may be just some urban legend (the reasoning was something like the music sounds so positive because it's using some brainwaves stuff, but maybe it's all bogus. Actually I bought two MCs from Enya some 10-15 years ago and I cannot expect so wide freq. spectrum from cassette, but the music is still positive enough ;) |
Gregg 20-Feb-2007 [1603] | :-) SBAGen, or some other app, has an analysis utility that will show you the binaural beats embedded in tracks. SBAGen also lets you mix the beats with other sounds, so you could add them to Enya's stuff yourself. :-) |
Maxim 20-Feb-2007 [1604] | can you describe what are binaural beats? |
Gregg 20-Feb-2007 [1605] | Low freq waves, played through headphones, with different "beats" going to each ear; designed to induce/stimulate certain brainwave states or patterns. |
Maxim 20-Feb-2007 [1606x2] | and these modify your mood, for example? |
or make you feel light, or sense gravity, etc? | |
Gregg 20-Feb-2007 [1608] | There are a lot of claims and potential uses. |
Maxim 20-Feb-2007 [1609] | so basically subliminal sound, just like subliminal images. |
Gregg 20-Feb-2007 [1610] | I haven't done deep research, but mainly I view them as something like a "helper" for meditation, self-hypnosis, etc. |
Coccinelle 20-Feb-2007 [1611x3] | There is another script of the PSG AY-3-8910 from Guest2, it's here http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=demo-ay.r His script was my inspiration and is much more nice than mine. But I wanted to understand by myself. |
Question : How does work the barb opcode ? | |
Another question : Is possible to do something like a call within rebcode ? | |
BrianH 20-Feb-2007 [1614x3] | Use the APPLY opcode to get access to any REBOL function. Watch out though: When last I checked, repeated calls to APPLY could crash REBOL - some kind of leak, I guess. |
I forget how many calls were required. | |
APPLY is quite slow as well, at least when compared to rebcode in general. | |
Maxim 20-Feb-2007 [1617x2] | I guess its because of all of tha context navigation which rebocode is freed of. |
darn, why does that damn "o" always get added when I write rebcode quickly.. | |
BrianH 20-Feb-2007 [1619x5] | I think that function calls recurse into the interpreter. |
BRAB is for branch tables like that generated by switch statements in C. Words in the target block are changed by the assembler into integer offsets to their associated label statements. Any other use is only appropriate for compiler-generated rebcode. | |
As for an equivalent to NONE?, SETT might work. | |
Looking back on this group, it seems that the APPLY bug may have been fixed. Also, BRAB is good for use on the results of CMP or SIGN. | |
As for reversing the bits in a byte, have you considered a binary lookup table? | |
Maxim 20-Feb-2007 [1624] | steeve... told you brian was the reference here :-) |
BrianH 20-Feb-2007 [1625] | It's been a while - for some I had to go back and look at my own posts :) |
Maxim 20-Feb-2007 [1626x2] | is rebcode still incapable to lookup objects? |
(still as in... did the last version still have that limitation) | |
BrianH 20-Feb-2007 [1628x2] | That was part of the planned upcoming features, and then they stopped updating it. I recall creating a comprehensive proposal... |
You can still APPLY IN and then GETW or SETW. | |
Maxim 20-Feb-2007 [1630] | rebcode really has to be part of 2.7... if we could just have object lookup, that would allow me try to make a few tests with liquid and mayb optimise so its about 10-30 times faster at managing the dataflow :-) |
BrianH 20-Feb-2007 [1631] | Have you tried it with APPLY IN and such? How is the speed compared to REBOL? |
Maxim 20-Feb-2007 [1632x4] | I have not yet done any rebcode tests with liquid, as so far, its always interactive enough, so as to not require it... but I am going nuts with the engine ;-) liquidator is a testament to its stability and another user here is helping me push the enveloppe to :-) but obviously, It will come to a point where pure processing will be needed and in such a case, speed will always be a factor. |
going nuts as in "I'm having a lot of fun with it" :-D the apis is pretty complete for most gui and procedural | |
(needs) | |
I didn't know about APPLY IN ... I might just do a quick try in a little while... does 'APPLY support refinements? | |
BrianH 20-Feb-2007 [1636] | Yes, as positional true/false arguments. IN doesn't have any refinements. |
Maxim 20-Feb-2007 [1637] | ok ... yes... I remember that part about the ordering of apply... |
BrianH 20-Feb-2007 [1638x2] | If you change the order that the refinements are declared in the function, you will need to change all calls by APPLY to match. |
I think true/false will work - it might need true/none. | |
Maxim 20-Feb-2007 [1640] | its probably true/none |
BrianH 20-Feb-2007 [1641] | It's probably both. |
Maxim 20-Feb-2007 [1642] | hum... in any case, thanks for remining me about APPLY IN :-) you've revived my interest in rebcode (even if I might now rely on some features of 2.7) |
Steeve 20-Feb-2007 [1643] | here am i ^^^ |
BrianH 20-Feb-2007 [1644x2] | It is really the best way to work with objects in efficient code, so much so that I requested an IN opcode. |
Hi Steeve! | |
Maxim 20-Feb-2007 [1646] | glad you did :-) |
BrianH 20-Feb-2007 [1647] | IN doesn't work with structs though, so I requested a set of struct opcodes to work with them (SET.S, GET.S, ...). |
Maxim 20-Feb-2007 [1648x2] | that would probably be even faster. |
since its a simple shift | |
older newer | first last |