Category: ideas

Regenerative receiver design

Notes and circuits

Screen Shot 2015-04-30 at 1.30.02 AM

 

“The regenerative circuit (or regen) allows an electronic signal to be amplified many times by the same active device

From Wikipedia: http://en.wikipedia.org/wiki/Regenerative_circuit

In other words it uses feedback.

Charles Kitchin, N1TEV

“High Performance Regenerative Receiver Design”, QEX Nov/Dec 1998: http://www.arrl.org/files/file/Technology/tis/info/pdf/9811qex026.pdf

A Shortwave Regenerative Receiver Project”, http://www.electronics-tutorials.com/receivers/regen-radio-receiver.htm

A two part video presentation: https://youtu.be/gcr7hSjTqd8

Google search, kitchin regenerative receiver, https://www.google.com/?gws_rd=ssl#q=kitchin+regenerative+receiver

Derivatives

Makota, 7N3WVM

Derivatives

Circuit Salad

http://circuitsalad.com

By Ray Ring

More…

ep-426 Interactive Video – Spring 2015 week 14

Jitter programming

Developing with javascript, gen, and external objects.

Javascript

Jitter in javascript: http://reactivemusic.net/?p=19218

Gen

Jitter gen: http://reactivemusic.net/?p=19205

Particles

http://reactivemusic.net/?p=19194

Jitter objects

Writing Jitter external objects: http://reactivemusic.net/?p=19208

Revisiting Vizzie

Even after all that, Vizzie is my first choice when starting a project or building a prototype.

Vine analyzer example:

https://github.com/tkzic/max-projects/tree/master/maxvine

patch: maxvine-analyzer.maxpat (requires other files in the maxvine folder)

More analog video

media converter demo: http://reactivemusic.net/?p=19173

Miscellaneous

And topics that didn’t get covered.

Algorithmic video and data visualization
Projection mapping

Cornerpin: http://reactivemusic.net/?p=11838

Lighting control systems

DMX: Andrew Pask tutorial: http://reactivemusic.net/?p=18266

Development tools
Miscellaneous

60 minutes of whales: http://reactivemusic.net/?p=8433

Assignment

Do something.

ep-341 Max/MSP – Spring 2015 week 14

(under construction)

Algorithmic composition and generative music – part 3

Sensors, sonification, and data.

Sensors

Data

Vine API in Max

A Max patch that displays, transforms, and responds to internet data.

building materials
  • Max (6.1.7 or newer)
  • Soundflower –

Both available from Cycling 74 http://cycling74.com/

The Max patch is based on a tutorial by dude837 called “Automatic Silly Video Generator”

download

The patch at the download link in the video is broken – but the javascript code for the Max js object is intact.

Download the entire patch from the Max-projects archive: https://github.com/tkzic/max-projects folder: maxvine

Internet API’s

API’s (application programming interfaces) provide methods for programs (other than web browsers) to access Internet data. Any app that access data from the web uses an API.

Here is a link to information about the Vine API: https://github.com/starlock/vino/wiki/API-Reference

For example, if you copy this URL into a web browser address bar, it will return a block of data in JSON format about the most popular videos on Vine: https://api.vineapp.com/timelines/popular

HTTP requests

An HTTP request transfers data to or from a server. A web browser handles HTTP requests in the background. You can also write programs that make HTTP requests. A  program called “curl” runs http requests from the terminal command line. Here are examples: http://reactivemusic.net/?p=5916

Response data

Data is usually returned in one of 3 formats:

  • JSON
  • XML
  • HTML

JSON is the preferred method because its easy to access the data structure.

Max HTTP requests

There are several ways to make HTTP requests in Max, but the best method is the js object: Here is the code that runs the GET request for the Vine API:

function get(url)
{
    var ajaxreq = new XMLHttpRequest();
    ajaxreq.open("GET", url);
    ajaxreq.onreadystatechange = readystatechange;
    ajaxreq.send();
}

function readystatechange()
{
    var rawtext = this._getResponseKey("body");
    var body = JSON.parse(rawtext);
    outlet(0, body.data.records[0].videoUrl);
}

 

The function: get() formats and sends an HTTP request using the URL passed in with the get message from Max. When the data is returned to Max, the readystatechange() function parses it and sends the URL of the most popular Vine video out the left outlet of the js object.

Playing Internet audio/video files in Max

The qt.movie object will play videos, with the URL passed in by the read message.

Unfortunately, qt.movie sends its audio to the system, not to Max. You can use Soundflower, or a virtual audio routing app, to get the audio back into Max.

MBTA API
Audio from video

http://reactivemusic.net/?p=12570

Video from audio

http://reactivemusic.net/?p=12570

Sonification of Vine videos

https://github.com/tkzic/max-projects/tree/master/maxvine

patch: maxvine-analyzer.maxpat (requires other files in the maxvine folder)

Steve Hensley example: local file: shensely_maxvine.maxpat

References

There is a large archive of examples here: Internet sensors: http://reactivemusic.net/?p=5859

Aggregators

There are API services that consolidate many API’s into one API. For example:

Scaling data

Look at the Max tutorial (built in to Max Help) called “Data : data scaling” It contains most of what you need to know to work with streams of data.

Curl examples: http://reactivemusic.net/?p=5916

Assignment

Algorithmic/generative music. Due in class next week.

 

mchain

Build Markov in chains in real-time with Max

By Richard Dudas

http://www.richarddudas.com/software/

Screen Shot 2015-04-13 at 1.03.07 AM

Using the text processing example I built a 4th order Markov chain for “The Cat in The Hat” (by Dr. Seuss). Here is some of the result (it continues to infinity) with indentation added for readability:

The sat the sun is not shine.
It was to Sit! Sit!
And I sat in the house
All that?

How I wish We had something went BUMP! How I wish We did not shine.
It was to us jump! We looked!
The Cat in that cold to go out And wet to play.
So all we sat in the Hat! And he saw him!

Then we sat is wet to Sit! Sit!
And to go out
And the house
All that?

Why do was too wet And there little bit. And wet to go out
And there we saw him step in on that?
How I wish We sat is nothing at all.
So all we could do was too wet day.

So all we sat the house 
All that is fun there we can have Lots of good fun the mat!
We had something at all.
So wet to go out And the sun is wet to Sit! Sit!

And I said too wet to do I know it is not sunny!
Too we can have Lots of good funny!
Too wet And I sat is fun the house. We sat the house. We saw him!
The Cat is wet to us.

The help file patch allows real time Midi improvisation with a step sequencer style of playback:

Screen Shot 2015-04-13 at 1.12.49 AM

 

Probability based drum machine

Step sequencer in Max with probability based decisions for each instrument.

By Iannis Ionnides http://www.yiannisioannides.com

Download drum machine app: http://www.mediafire.com/download/zkks7kqk9n9psyn/Probability+Audio+Drum+Machine.zip

The Max patch is not available. Here is a link to a patch that shows how the probability engine probably works: http://reactivemusic.net/?p=18909