This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---- TidalCycles QUICK REFERENCE ---- | |
---------------------------------------------------------------- | |
-- To use in your editor after or alongside your code for quick reference | |
-- Work in progress, mostly to be used as basis for further documnentation work, sorry for the errors and omissions | |
-- designed with atom - monokai one dark vivid as theme | |
-- https://gist.github.com/mxactvtd/bf3fb357a419c7f063b98dfd9a66cf78 - check for update, I keep updating this quite often atm | |
---------------------------------------------------------------- | |
-- Some sources of Documentation -- | |
-- https://tidalcycles.org/patterns.html | |
-- https://tidalcycles.org/functions.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ABLLinkManager.swift | |
// | |
// Created by Cem Olcay on 5.03.2018. | |
// Copyright © 2018 cemolcay. All rights reserved. | |
// | |
import Foundation | |
import AVFoundation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let sequencer = AKSequencer() | |
let track = sequencer.newTrack() | |
sequencer.setLength(AKDuration(seconds: 2.0)) | |
track?.add(noteNumber: MIDINoteNumber(60), | |
velocity: MIDIVelocity(100), | |
position: AKDuration(seconds: 1, tempo: 120), | |
duration: AKDuration(seconds: 0.5, tempo: 120)) | |
try! sequencer.genData()!.write(to: url) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIColor+RGB.swift | |
// Copyright (c) 2014 Massimiliano Bigatti. All rights reserved. | |
// | |
import Foundation | |
import UIKit | |
/** | |
UIColor extension that add a whole bunch of utility functions like: |