{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# fractaL - reinstating the data to ecosystem\n", "## IPython, Sonify and More Audification Prototypes.\n", "\n", "This is a notebook with the first tests for fractaL's sound prototyping.\n", "Here you find early tests using some libraries for sonification. From noise-like to MIDI.\n", "\n", "\n", "\n", "\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Adding and Importing Libraries Before Start" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "scrolled": false }, "outputs": [], "source": [ "from IPython.display import Audio \n", "\n", "import matplotlib.pyplot as plt\n", "import numpy as np\n", "import matplotlib.dates as mdates\n", "import datetime as datetime\n", "import sys , os\n", "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Using IPython and NumPy\n", "\n", "Ipython is an \n", "\n", "\n", "First we import **Audio** from **IPython**, then **NumPy**. These will make possible to not only generate sound, but work with numbers and further datasets.\n", "\n", "The next two examples we can see the operations using **NumPy**, after the sound output using **Audio**\n", "\n", "The first code modulates a 440 Hz carrier signal with a 520 Hz modulation signal. The modulation fignal (frequence modulation - fm) is the basis of FM radio and of FM synthesis." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "