This file contains hidden or 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
import { Pattern, Sampler, Sound, SOULPatch, Note, Step } from 'sattern'; | |
const sampler1 = new Sampler ("Sampler 1"); | |
sampler1.sounds = [new Sound ("./bell.aif", { rootKey: 60, lowKey: 0, highKey: 127 })]; | |
graph.add (sampler1); |
This file contains hidden or 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
// | |
// ViewController.swift | |
// HYPNOAppSwitf | |
// | |
// Created by Jacob Sologub on 11/16/19. | |
// Copyright © 2019 Hold Still Inc. All rights reserved. | |
// | |
import UIKit |
This file contains hidden or 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
// | |
// libhypno_Platform.h | |
// HYPNOApp | |
// | |
// Created by Jacob Sologub on 11/15/19. | |
// Copyright © 2019 Jacob Sologub. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file contains hidden or 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
// | |
// crossfade-images.js | |
// libhypno | |
// | |
// Created by Jacob Sologub on 29 Oct 2019 9:22:41pm | |
// Copyright © 2019 Jacob Sologub. All rights reserved. | |
import { Asset, Time, TimeRange, Clip, Vector, coreimage } from 'hypno'; | |
import { Image, Filter } from 'hypno/coreimage'; |
This file contains hidden or 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
// | |
// air-demo.js | |
// libhypno | |
// | |
// Created by Jacob Sologub on 16 Oct 2019 4:20:00pm | |
// Copyright © 2019 Jacob Sologub. All rights reserved. | |
import { Asset, Time, TimeRange, Clip, Transform } from 'hypno'; | |
import * as coreimage from 'hypno/coreimage'; | |
import { Image, Filter, Kernel } from 'hypno/coreimage'; |
This file contains hidden or 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
struct objc_ptr { | |
~objc_ptr() {}; | |
static std::shared_ptr<objc_ptr> create (Type* object) { | |
return std::shared_ptr<objc_ptr> (new objc_ptr (object)); | |
} | |
Type* get() { | |
return static_cast<Type*> (objectHolder.nonretainedObjectValue); | |
}; |
This file contains hidden or 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
struct objc_ptr { | |
~objc_ptr() {}; | |
static std::shared_ptr<objc_ptr> create (Type* object) { | |
return std::shared_ptr<objc_ptr> (new objc_ptr (object)); | |
} | |
Type* get() { | |
return static_cast<Type*> (objectHolder.nonretainedObjectValue); | |
}; |
This file contains hidden or 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
/* | |
* A simple way to format numbers as human readable strings. | |
* E.g., 123456789 ==> 123 million | |
* | |
* Written by Christian Stigen Larsen | |
* http://csl.sublevel3.org | |
* | |
* Placed in the public domain by the author, 2012 | |
*/ |