... | ... | @@ -11,8 +11,49 @@ In light of these scenarios, fractaL purposes an integrative perspective focused |
|
|
Considering these, fractaL choose to base its code on Python and use the concept of fractal geometry, defined by the spatial heterogeneity, complexity at different scales. This “roughness” that is characteristic in natural structures is far from the smooth structures and shapes created by human and has revolutionized not only mathematics, but also ecology and environmental studies because attempted to understand chaotic and unpredictable processes that has reached an unprecedented capability to explain more complex and systemic issues once constrained by classical Euclidean paradigms. These contributions to ecological studies is used as the base to the synesthetic methods and artistic tools in order to bring the ecological studies to a broad audience, as well as to provide a solid tool for researchers to improve their skills in Python.
|
|
|
|
|
|
|
|
|
### Setup
|
|
|
|
|
|
To use fractaL we need first to install Python! (Python3)
|
|
|
|
|
|
##### Here for GNU/Linux
|
|
|
|
|
|
Debian based
|
|
|
|
|
|
apt-get install python3
|
|
|
|
|
|
???? based
|
|
|
yum install python3
|
|
|
|
|
|
|
|
|
##### Here for MacOS
|
|
|
|
|
|
|
|
|
##### Here for Windows
|
|
|
|
|
|
|
|
|
|
|
|
Now we install the needed libraries:
|
|
|
(To make it easier, we can install pip and then the libraries)
|
|
|
|
|
|
+++++describe here how to install pip
|
|
|
|
|
|
pip3 install json
|
|
|
pip3 install matplotlib
|
|
|
pip3 install pandas
|
|
|
pip3 install csv
|
|
|
pip3 install io
|
|
|
pip3 install numpy
|
|
|
pip3 install pygame
|
|
|
pip3 install midiutil
|
|
|
pip3 install pretty_midi
|
|
|
pip3 install time
|
|
|
|
|
|
|
|
|
|
|
|
### Overview
|
|
|
|
|
|
Before to start describing the practical use of fractaL, let's take a look on some function in the code.
|
|
|
|
|
|
The fractaL's functions cover different data format. For JSON format we use as follow:
|
|
|
|
|
|
```python
|
... | ... | @@ -133,3 +174,28 @@ def export_midi(data, key=None, number_of_octaves=4, bpm = 120, |
|
|
|
|
|
return expfile
|
|
|
```
|
|
|
|
|
|
### Examples
|
|
|
Now it's where we can practice using the code.
|
|
|
|
|
|
First a single track function. The fallowing example is using data from the mean ocean surface temperature (AKA temperature anomalies).
|
|
|
|
|
|
|
|
|
```python
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
But fractaL also allows us to use a multivariable/multitrack file, as follow:
|
|
|
|
|
|
|
|
|
```python
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
------------------
|
|
|
<p align="center"><a rel="license" target="_blank" href="http://creativecommons.org/licenses/by-sa/4.0/">Attribution-ShareAlike 4.0 License</spam></a></p><br><p align="center">fractaL - 2019</p> |