Csound Csound-dev Csound-tekno Search About

[Cs-dev] Bit operations

Date2012-07-03 17:22
Fromjohn ffitch
Subject[Cs-dev] Bit operations
It occurs to me that the bit operations should be on unsigned integers
not signed.  Would that change be a problem?

While we are thinking about it, does anyone use these?  & | << >>
operations

==John ffitch

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-07-03 17:24
FromRory Walsh
SubjectRe: [Cs-dev] Bit operations
Not I, but mostly because bit-wise operations give me nosebleeds.

On 3 July 2012 18:22, john ffitch  wrote:
> It occurs to me that the bit operations should be on unsigned integers
> not signed.  Would that change be a problem?
>
> While we are thinking about it, does anyone use these?  & | << >>
> operations
>
> ==John ffitch
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-07-03 17:43
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Bit operations
> Not I, but mostly because bit-wise operations give me nosebleeds.

There is treatment for  nosebleeds -- I had it done years ago.  Certainly
not a good idea during examinations.....


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-07-03 17:56
FromJustin Smith
SubjectRe: [Cs-dev] Bit operations
On Tue, Jul 3, 2012 at 9:43 AM,   wrote:
>> Not I, but mostly because bit-wise operations give me nosebleeds.
>
> There is treatment for  nosebleeds -- I had it done years ago.  Certainly
> not a good idea during examinations.....
>

I sometimes use bitwise ops, usually for avoiding nested ifs or
complex goto paths.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-07-04 10:03
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] Bit operations
I've used them a little bit, to try to create a distortion effect
inspired by the bitsong examples.
I tentatively called the effect at "bitch shifter".... it has very
counterintuitive control parameters and I managed to blow up my laptop
speakers after generating a sound at 270 000 times the intended
amplitude ... ehrm, luckily did not use headphones or i would probably
have a nosebleed too.
Oeyvind

2012/7/3 Justin Smith :
> On Tue, Jul 3, 2012 at 9:43 AM,   wrote:
>>> Not I, but mostly because bit-wise operations give me nosebleeds.
>>
>> There is treatment for  nosebleeds -- I had it done years ago.  Certainly
>> not a good idea during examinations.....
>>
>
> I sometimes use bitwise ops, usually for avoiding nested ifs or
> complex goto paths.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-07-04 10:43
FromRory Walsh
SubjectRe: [Cs-dev] Bit operations
Bitch-shifter. Classic.

On 4 July 2012 11:03, Oeyvind Brandtsegg  wrote:
> I've used them a little bit, to try to create a distortion effect
> inspired by the bitsong examples.
> I tentatively called the effect at "bitch shifter".... it has very
> counterintuitive control parameters and I managed to blow up my laptop
> speakers after generating a sound at 270 000 times the intended
> amplitude ... ehrm, luckily did not use headphones or i would probably
> have a nosebleed too.
> Oeyvind
>
> 2012/7/3 Justin Smith :
>> On Tue, Jul 3, 2012 at 9:43 AM,   wrote:
>>>> Not I, but mostly because bit-wise operations give me nosebleeds.
>>>
>>> There is treatment for  nosebleeds -- I had it done years ago.  Certainly
>>> not a good idea during examinations.....
>>>
>>
>> I sometimes use bitwise ops, usually for avoiding nested ifs or
>> complex goto paths.
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> --
>
> Oeyvind Brandtsegg
> Professor of Music Technology
> NTNU
> 7491 Trondheim
> Norway
> Cell: +47 92 203 205
>
> http://flyndresang.no/
> http://www.partikkelaudio.com/
> http://soundcloud.com/brandtsegg
> http://soundcloud.com/t-emp
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-07-04 11:09
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] Bit operations
I also have vague plans for a bitchtracker of course...

2012/7/4 Rory Walsh :
> Bitch-shifter. Classic.
>
> On 4 July 2012 11:03, Oeyvind Brandtsegg  wrote:
>> I've used them a little bit, to try to create a distortion effect
>> inspired by the bitsong examples.
>> I tentatively called the effect at "bitch shifter".... it has very
>> counterintuitive control parameters and I managed to blow up my laptop
>> speakers after generating a sound at 270 000 times the intended
>> amplitude ... ehrm, luckily did not use headphones or i would probably
>> have a nosebleed too.
>> Oeyvind
>>
>> 2012/7/3 Justin Smith :
>>> On Tue, Jul 3, 2012 at 9:43 AM,   wrote:
>>>>> Not I, but mostly because bit-wise operations give me nosebleeds.
>>>>
>>>> There is treatment for  nosebleeds -- I had it done years ago.  Certainly
>>>> not a good idea during examinations.....
>>>>
>>>
>>> I sometimes use bitwise ops, usually for avoiding nested ifs or
>>> complex goto paths.
>>>
>>> ------------------------------------------------------------------------------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond. Discussions
>>> will include endpoint security, mobile security and the latest in malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>>
>> --
>>
>> Oeyvind Brandtsegg
>> Professor of Music Technology
>> NTNU
>> 7491 Trondheim
>> Norway
>> Cell: +47 92 203 205
>>
>> http://flyndresang.no/
>> http://www.partikkelaudio.com/
>> http://soundcloud.com/brandtsegg
>> http://soundcloud.com/t-emp
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-07-04 16:59
From"Dr. Richard Boulanger"
SubjectRe: [Cs-dev] Bit operations
AttachmentsNone  None  
can you share some of your bitShiting instruments?
___________________________________

Dr. Richard Boulanger, Ph.D.

Professor of Electronic Production and Design
Professional Writing and Music Technology Division
Berklee College of Music
1140 Boylston Street
Boston, MA 02215-3693

617-747-2485 (office)
774-488-9166 (cell)


____________________________________



____________________________________

____________________________________

On Jul 4, 2012, at 6:09 AM, Oeyvind Brandtsegg wrote:

I also have vague plans for a bitchtracker of course...

2012/7/4 Rory Walsh <rorywalsh@ear.ie>:
Bitch-shifter. Classic.

On 4 July 2012 11:03, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote:
I've used them a little bit, to try to create a distortion effect
inspired by the bitsong examples.
I tentatively called the effect at "bitch shifter".... it has very
counterintuitive control parameters and I managed to blow up my laptop
speakers after generating a sound at 270 000 times the intended
amplitude ... ehrm, luckily did not use headphones or i would probably
have a nosebleed too.
Oeyvind

2012/7/3 Justin Smith <noisesmith@gmail.com>:
On Tue, Jul 3, 2012 at 9:43 AM,  <jpff@cs.bath.ac.uk> wrote:
Not I, but mostly because bit-wise operations give me nosebleeds.

There is treatment for  nosebleeds -- I had it done years ago.  Certainly
not a good idea during examinations.....


I sometimes use bitwise ops, usually for avoiding nested ifs or
complex goto paths.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



--

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



--

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2012-07-04 18:53
Frommenno
SubjectRe: [Cs-dev] Bit operations
Also, the manual would love to have examples that show the use of these: &&,
<<, >>, &, |, ¬, #. 
If there is an example already it only shows that it works, but not when one
should want to use them....
Anyone?

thanks
Menno

--
View this message in context: http://csound.1045644.n5.nabble.com/Bit-operations-tp5714026p5714049.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://l

Date2012-07-04 22:58
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] Bit operations
Attachmentsbitchshifter.csd  None  None  
as I hinted at, this is nothing close to finished, more like a loose experiment,
but I'm happy to share it, and perhaps someone will build upon it.
The section with normalizing the modulation signal as added after my
infamous x270000 blow up, but really tend to make the end result more
boring.... I guess perhaps an additional overdrive step with a hard
limiter might bring back some of the "wildness".
Also, the parameter names, ... hm...they are not so descriptive.

After a nice workshop on particle synthesis and Csound at the
Universität der Kunste in Berlin today, and attending the opening of a
great sound installation by Robert Henke at the Wasserturm in
Prenzlauer berg, I'm phasing into vacation mode, so please forgive me
for posting this clearly unclear sound effect.

Oeyvind


2012/7/4 Dr. Richard Boulanger :
> can you share some of your bitShiting instruments?
> ___________________________________
>
> Dr. Richard Boulanger, Ph.D.
>
> Professor of Electronic Production and Design
> Professional Writing and Music Technology Division
> Berklee College of Music
> 1140 Boylston Street
> Boston, MA 02215-3693
>
> 617-747-2485 (office)
> 774-488-9166 (cell)
>
> rboulanger@berklee.edu
>
> http://csounds.com/boulanger
> ____________________________________
>
> http://boulangerlabs.com
>
> http://csoundforlive.com
>
> http://csounds.com
> ____________________________________
>
> http://csounds.com/mathews
> ____________________________________
>
> On Jul 4, 2012, at 6:09 AM, Oeyvind Brandtsegg wrote:
>
> I also have vague plans for a bitchtracker of course...
>
> 2012/7/4 Rory Walsh :
>
> Bitch-shifter. Classic.
>
>
> On 4 July 2012 11:03, Oeyvind Brandtsegg  wrote:
>
> I've used them a little bit, to try to create a distortion effect
>
> inspired by the bitsong examples.
>
> I tentatively called the effect at "bitch shifter".... it has very
>
> counterintuitive control parameters and I managed to blow up my laptop
>
> speakers after generating a sound at 270 000 times the intended
>
> amplitude ... ehrm, luckily did not use headphones or i would probably
>
> have a nosebleed too.
>
> Oeyvind
>
>
> 2012/7/3 Justin Smith :
>
> On Tue, Jul 3, 2012 at 9:43 AM,   wrote:
>
> Not I, but mostly because bit-wise operations give me nosebleeds.
>
>
> There is treatment for  nosebleeds -- I had it done years ago.  Certainly
>
> not a good idea during examinations.....
>
>
>
> I sometimes use bitwise ops, usually for avoiding nested ifs or
>
> complex goto paths.
>
>
> ------------------------------------------------------------------------------
>
> Live Security Virtual Conference
>
> Exclusive live event will cover all the ways today's security and
>
> threat landscape has changed and how IT managers can respond. Discussions
>
> will include endpoint security, mobile security and the latest in malware
>
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
> _______________________________________________
>
> Csound-devel mailing list
>
> Csound-devel@lists.sourceforge.net
>
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
>
> --
>
>
> Oeyvind Brandtsegg
>
> Professor of Music Technology
>
> NTNU
>
> 7491 Trondheim
>
> Norway
>
> Cell: +47 92 203 205
>
>
> http://flyndresang.no/
>
> http://www.partikkelaudio.com/
>
> http://soundcloud.com/brandtsegg
>
> http://soundcloud.com/t-emp
>
>
> ------------------------------------------------------------------------------
>
> Live Security Virtual Conference
>
> Exclusive live event will cover all the ways today's security and
>
> threat landscape has changed and how IT managers can respond. Discussions
>
> will include endpoint security, mobile security and the latest in malware
>
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
> _______________________________________________
>
> Csound-devel mailing list
>
> Csound-devel@lists.sourceforge.net
>
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
>
> Live Security Virtual Conference
>
> Exclusive live event will cover all the ways today's security and
>
> threat landscape has changed and how IT managers can respond. Discussions
>
> will include endpoint security, mobile security and the latest in malware
>
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
> _______________________________________________
>
> Csound-devel mailing list
>
> Csound-devel@lists.sourceforge.net
>
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
>
> --
>
> Oeyvind Brandtsegg
> Professor of Music Technology
> NTNU
> 7491 Trondheim
> Norway
> Cell: +47 92 203 205
>
> http://flyndresang.no/
> http://www.partikkelaudio.com/
> http://soundcloud.com/brandtsegg
> http://soundcloud.com/t-emp
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp