text stringlengths 9 39.2M | dir stringlengths 26 295 | lang stringclasses 185
values | created_date timestamp[us] | updated_date timestamp[us] | repo_name stringlengths 1 97 | repo_full_name stringlengths 7 106 | star int64 1k 183k | len_tokens int64 1 13.8M |
|---|---|---|---|---|---|---|---|---|
```swift
//
// DispatchableLogger.swift
// Katana
//
// See the LICENSE file for more information.
import Foundation
/// Interceptor that logs all the dispatched items in the XCode console.
public enum DispatchableLogger {
/**
This function returns a `StoreInterceptor` that intercepts and logs not black-liste... | /content/code_sandbox/Sources/Interceptor/DispatchableLogger.swift | swift | 2016-08-09T08:09:22 | 2024-08-10T03:34:45 | katana-swift | BendingSpoons/katana-swift | 2,251 | 234 |
```swift
//
// Interceptor.swift
// Katana
//
// See the LICENSE file for more information.
import Foundation
/**
Typealias for the function that is invoked to continue with the interceptors
chains.
*/
public typealias StoreInterceptorNext = (_: Dispatchable) throws -> Void
/**
An interceptor is like a catch-... | /content/code_sandbox/Sources/Interceptor/Interceptor.swift | swift | 2016-08-09T08:09:22 | 2024-08-10T03:34:45 | katana-swift | BendingSpoons/katana-swift | 2,251 | 440 |
```swift
//
// XCTestCase+Promise.swift
// Katana
//
// See the LICENSE file for more information.
import Hydra
import XCTest
extension XCTestCase {
func waitForPromise<T>(_ promise: Promise<T>) -> T {
var promiseResult: T! // swiftlint:disable:this implicitly_unwrapped_optional
let expectation = XCTestE... | /content/code_sandbox/Tests/XCTestCase+Promise.swift | swift | 2016-08-09T08:09:22 | 2024-08-10T03:34:45 | katana-swift | BendingSpoons/katana-swift | 2,251 | 272 |
```swift
//
// ObserverInterceptor.swift
// Katana
//
// See the LICENSE file for more information.
import Foundation
import Hydra
/**
Protocol implemented by a dispatchable that wants to be dispatched in response to a notification
*/
public protocol NotificationObserverDispatchable: Dispatchable {
/**
Crea... | /content/code_sandbox/Sources/Interceptor/ObserverInterceptor.swift | swift | 2016-08-09T08:09:22 | 2024-08-10T03:34:45 | katana-swift | BendingSpoons/katana-swift | 2,251 | 2,562 |
```swift
//
// StoreTests.swift
// Katana
//
// See the LICENSE file for more information.
import Foundation
import Hydra
import XCTest
@testable import Katana
class StoreTest: XCTestCase {
func testDefaultInit_initializesEmptyState() {
let store = Store<AppState, TestDependenciesContainer>()
self.waitF... | /content/code_sandbox/Tests/StoreTests.swift | swift | 2016-08-09T08:09:22 | 2024-08-10T03:34:45 | katana-swift | BendingSpoons/katana-swift | 2,251 | 553 |
```swift
//
// ObserverInterceptorTests.swift
// Katana
//
// See the LICENSE file for more information.
import Foundation
import Hydra
import XCTest
@testable import Katana
class ObserverInterceptorTests: XCTestCase {
// MARK: AppState StateChangeObserver
func your_sha256_hashhesDispatchable() throws {
... | /content/code_sandbox/Tests/ObserverInterceptorTests.swift | swift | 2016-08-09T08:09:22 | 2024-08-10T03:34:45 | katana-swift | BendingSpoons/katana-swift | 2,251 | 2,979 |
```swift
//
// SideEffectTests.swift
// Katana
//
// See the LICENSE file for more information.
import Foundation
import Hydra
import XCTest
@testable import Katana
class SideEffectTests: XCTestCase {
func testDispatch_invokesTheSideEffect() {
let store = Store<AppState, TestDependenciesContainer>()
let... | /content/code_sandbox/Tests/SideEffectTests.swift | swift | 2016-08-09T08:09:22 | 2024-08-10T03:34:45 | katana-swift | BendingSpoons/katana-swift | 2,251 | 1,742 |
```swift
//
// StateUpdaterTests.swift
// Katana
//
// See the LICENSE file for more information.
import Foundation
import XCTest
@testable import Katana
class StateUpdaterTests: XCTestCase {
func testDispatch_invokesTheStateUpdater() {
let todo = Todo(title: "test", id: "ABC")
let store = Store<AppStat... | /content/code_sandbox/Tests/StateUpdaterTests.swift | swift | 2016-08-09T08:09:22 | 2024-08-10T03:34:45 | katana-swift | BendingSpoons/katana-swift | 2,251 | 502 |
```swift
//
// StoreInterceptorsTests.swift
// Katana
//
// See the LICENSE file for more information.
import Foundation
import Hydra
import XCTest
@testable import Katana
class StoreInterceptorsTests: XCTestCase {
func testStoreInterceptor() {
var dispatchedStateUpdater: AddTodo?
var stateBefore: AppSt... | /content/code_sandbox/Tests/StoreInterceptorsTests.swift | swift | 2016-08-09T08:09:22 | 2024-08-10T03:34:45 | katana-swift | BendingSpoons/katana-swift | 2,251 | 988 |
```swift
//
// TestDependenciesContainer.swift
// Katana
//
// See the LICENSE file for more information.
import Foundation
import Hydra
import Katana
final class TestDependenciesContainer: SideEffectDependencyContainer {
func delay(of interval: TimeInterval) -> Promise<Void> {
return Promise<Void>({ resolve... | /content/code_sandbox/Tests/Mocks/TestDependenciesContainer.swift | swift | 2016-08-09T08:09:22 | 2024-08-10T03:34:45 | katana-swift | BendingSpoons/katana-swift | 2,251 | 112 |
```swift
//
// State.swift
// Katana
//
// See the LICENSE file for more information.
import Foundation
@testable import Katana
struct Todo: Equatable {
let title: String
let id: String
}
struct User: Equatable {
let username: String
}
struct TodoState: State, Equatable {
var todos: [Todo]
}
extension T... | /content/code_sandbox/Tests/Mocks/State.swift | swift | 2016-08-09T08:09:22 | 2024-08-10T03:34:45 | katana-swift | BendingSpoons/katana-swift | 2,251 | 176 |
```swift
//
// Dispatchables.swift
// Katana
//
// See the LICENSE file for more information.
import Foundation
import Hydra
import Katana
protocol TestStateUpdater: StateUpdater where StateType == AppState {}
protocol TestSideEffect: SideEffect where StateType == AppState, Dependencies == TestDependenciesContain... | /content/code_sandbox/Tests/Mocks/Dispatchables.swift | swift | 2016-08-09T08:09:22 | 2024-08-10T03:34:45 | katana-swift | BendingSpoons/katana-swift | 2,251 | 382 |
```swift
//
// Config.swift
// Katana
//
// See the LICENSE file for more information.
import ProjectDescription
let config = Config(
generationOptions: [
.disableAutogeneratedSchemes,
]
)
``` | /content/code_sandbox/Tuist/Config.swift | swift | 2016-08-09T08:09:22 | 2024-08-10T03:34:45 | katana-swift | BendingSpoons/katana-swift | 2,251 | 48 |
```python
#!/usr/bin/env python3
# add headers to .h, .cpp, .c and .ino files automatically.
# the script will first list the files missing headers, then
# prompt for confirmation. The modification is made inplace.
#
# usage:
# add-headers.py <header file> <root dir>
#
# The script will first read the header templat... | /content/code_sandbox/add-file-headers.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 512 |
```python
import re
import os
def extractParamString(group, skipFirst):
params = group.split(' ')[1:][::2]
if skipFirst:
params = params[1:]
params = [x for x in params if "<" not in x]
paramString = " ".join(params)
return paramString
sourceFile = open("Source/ScriptModule_PythonInterface.i")
li... | /content/code_sandbox/bespoke_script_autodoc.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 1,221 |
```yaml
# BespokeSynth Azure Pipelines script
trigger:
- main
variables:
- group: mac-signing
- group: libraries
pr:
- main
jobs:
- job: Build
variables:
isBuild: True
strategy:
matrix:
macOS-x64:
imageName: 'macos-12'
isMac: True
cmakeArguments: "... | /content/code_sandbox/azure-pipelines.yml | yaml | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 3,029 |
```python
#this script puts the Launchpad X into "programmer mode"
import midicontroller
m = midicontroller.get("midicontroller")
m.send_sysex(bytes([0, 32, 41, 2, 12, 14, 1]))
m.resync_controller_state()
``` | /content/code_sandbox/resource/userdata_original/scripts/lpx_programmer_mode.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 63 |
```python
#attach a pulser set to 1n
#requires the "schedule_sequence.py" script to be loaded
def on_pulse():
pattern = [0,0,0,'',0,0,'',0,'',0,0,'']
loop = (bespoke.get_measure()) % len(pattern)
loop2 = (bespoke.get_measure() // 2) % len(pattern)
loop3 = (bespoke.get_measure() // 3) % len(pattern)
shi... | /content/code_sandbox/resource/userdata_original/scripts/clappingmusic_hats.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 252 |
```python
#attach a pulser set to 8n
lastPitch = -1
def on_pulse():
global lastPitch
root = bespoke.get_root() + 48
scale = bespoke.get_scale()
while (True):
pitch = root + random.choice(scale) + random.choice([0,12])
if pitch != lastPitch:
break
velocity = get_velocity()
if abs... | /content/code_sandbox/resource/userdata_original/scripts/passing_tones.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 245 |
```python
#send a note input into here
def on_note(pitch,velocity):
for i in range(1,5):
me.schedule_note_msg(i/8.0, pitch, int(velocity/i))
``` | /content/code_sandbox/resource/userdata_original/scripts/note_echo.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 45 |
```python
#requires a drumsequencer named "drumsequencer"
import drumsequencer
d = drumsequencer.get("drumsequencer")
def randomVel():
return random.choice([0,0,random.randint(1,127)])
for row in range(8):
for step in range(16):
d.set(step, row, randomVel())
for step in range(16):
vel = d.g... | /content/code_sandbox/resource/userdata_original/scripts/drumseq_randomize.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 153 |
```python
#requires a notecanvas named "notecanvas"
import notecanvas
n = notecanvas.get("notecanvas")
scale = bespoke.get_scale_range(3,10)[::2]
n.clear()
t = 0.0
subdivision = 16
canvasLength = n.get("measures")
if canvasLength > 0:
while t < canvasLength:
length = 1/subdivision * random.randint(1,3)
... | /content/code_sandbox/resource/userdata_original/scripts/randomcanvas.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 162 |
```python
#attach a pulser set to 16n
def on_pulse():
step = bespoke.get_step(16)
if step % 16 in [0,4,8,11]:
this.play_note(0,127,1.0/16)
elif step % 16 in [4,11,14]:
this.play_note(1,127,1.0/16)
else:
this.play_note(2,127,1.0/16)
``` | /content/code_sandbox/resource/userdata_original/scripts/drum_patternlist.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 103 |
```python
#requires a drumplayer called "drumplayer"
def on_pulse():
for i in range(8):
if random.random() < .5:
this.set("drumplayer~random "+str(i), 1)
on_pulse()
``` | /content/code_sandbox/resource/userdata_original/scripts/drumplayerrandomizer.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 53 |
```python
#attach a pulser set to 16n
def on_pulse():
step = bespoke.get_step(16)
if (euclid(step,2,16)):
me.play_note(0,127)
if (euclid(step+4,3,16)):
me.play_note(5,80)
if (euclid(step,5,8)):
me.play_note(2 if euclid(step,3,11) else 6,127)
def euclid(step, count, length):
retu... | /content/code_sandbox/resource/userdata_original/scripts/euclid.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 131 |
```python
#requires a drumsequencer named "drumsequencer"
import drumsequencer
seq = drumsequencer.get("drumsequencer")
def mutate():
for step in range(16):
for pitch in range(8):
if random.random() < 0.1 and (pitch != 0 or step % 8 != 0):
if random.random() < .15:
seq.se... | /content/code_sandbox/resource/userdata_original/scripts/drum_mutate.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 122 |
```python
#attach a pulser set to 4n
root = bespoke.get_root() + 48
scale = bespoke.get_scale()
chord = [scale[0] + root, scale[2] + root, scale[4] + root]
step = 0
def on_pulse():
global step
for p in chord:
this.play_note(p, walk([60,30,10],step), 1.0/4)
while True:
newPitch = scale[random.ran... | /content/code_sandbox/resource/userdata_original/scripts/chord_mutation.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 167 |
```python
def echo(pitch, velocity, repeats, length=1.0/16, loopLength=1, syncopateChance=0, pan=0, playChance=1, responseIndex=0, playFirstLoop=True, quantize=False):
output = this.get_caller()
for i in range(repeats):
if i == 0 and playFirstLoop == False:
continue
if random.random() < playC... | /content/code_sandbox/resource/userdata_original/scripts/echo.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 297 |
```python
#requires a midicontroller named "midicontroller"
#requires a m185sequencer named "m185sequencer"
#the controls are mapped to the default controls of the nanoKONTROL2 device
import midicontroller
m = midicontroller.get("midicontroller")
for i in range(8):
m.set_connection(m.Control, i + 0, "m185sequence... | /content/code_sandbox/resource/userdata_original/scripts/nanokontrol_to_m185.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 198 |
```python
#requires the "schedule_seq.py" script and the "chord_tools.py" script
Cm = tuple(get_chord('C3','m',0))
Fm = tuple(get_chord('F2','m',2))
Bb = tuple(get_chord('Bb2','M',0))
Gm = tuple(get_chord('G2','m',2))
sequence = [( Cm+('G#3','D3' ), ['C2']*8 ),
( Fm+('', 'C#3'), ['C#2']*8 ),
... | /content/code_sandbox/resource/userdata_original/scripts/tension_layers.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 178 |
```python
#requires a midicontroller named "midicontroller"
import midicontroller
controller = midicontroller.get("midicontroller")
controller.add_script_listener(me.me())
def on_midi(messageType, control, value, channel):
debug = str(messageType) + " " + str(control) + " " + str(value) + " " + str(channel)
me... | /content/code_sandbox/resource/userdata_original/scripts/midicontroller_input.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 82 |
```python
#requires a drumsynth named "drumsynth"
for i in range(8):
if random.random() < .5:
me.set("drumsynth~vol"+str(i), random.uniform(0,1))
me.set("drumsynth~noise"+str(i), random.uniform(0,1))
me.set("drumsynth~adsrtone"+str(i)+"A",random.uniform(1,10))
me.set("drumsynth~adsrtone"+str... | /content/code_sandbox/resource/userdata_original/scripts/drumsynth_randomize.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 392 |
```python
#attach a pulser set to 16n, and some keyboard input
sequence = [60,60,60,60]
insertPos = 0
def on_pulse():
this.play_note(sequence[bespoke.get_step(16)%len(sequence)],127,1.0/16)
def on_note(pitch, velocity):
global sequence
global insertPos
if velocity > 0:
sequence[insertPos % len(s... | /content/code_sandbox/resource/userdata_original/scripts/arpeggiate_input.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 105 |
```python
#requires a sampleplayer named "sampleplayer"
#requires a drumplayer named "drumplayer"
import sampleplayer
import drumplayer
s = sampleplayer.get("sampleplayer")
d = drumplayer.get("drumplayer")
for i in range(8):
s.set_cue_point(i, random.uniform(0,4),.1,1)
d.import_sampleplayer_cue(s, i, i)
``` | /content/code_sandbox/resource/userdata_original/scripts/sampleplayer_to_drumplayer.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 89 |
```python
#requires a sampleplayer named "sampleplayer"
import sampleplayer
tempo = 99.5
secondsPerBeat = 60.0 / tempo
startOffsetSeconds = 3
startBeat = 0
sp = sampleplayer.get("sampleplayer")
for i in range(4):
sp.set_cue_point(i, secondsPerBeat*(startBeat+i) + startOffsetSeconds, secondsPerBeat, 1)
``` | /content/code_sandbox/resource/userdata_original/scripts/sampleplayer_chop.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 91 |
```python
#requires a notecanvas named "notecanvas"
import notecanvas
notes = [('C4', .125),
('A3', .125),
('G3', .125),
('A3', .125),
('F3', .125),
('G3', .125),
('C4', .25)]
canvas = notecanvas.get("notecanvas")
canvas.clear()
pos = 0
for i in range(len(notes... | /content/code_sandbox/resource/userdata_original/scripts/transcribe_to_canvas.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 137 |
```python
#adds digits in dozenal notation as variables
#this allows you to call me.play_note(d40, 127) to play the 0th note of the 4th octave
def dozenaldigit(decimal):
if decimal == 11:
return 'E'
elif decimal == 10:
return 'X'
else:
return str(decimal)
def dozenal(decimal):
ret = doze... | /content/code_sandbox/resource/userdata_original/scripts/dozenal.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 152 |
```python
#attach a pulser set to 8n
scale = bespoke.get_scale_range(3,7)
random.shuffle(scale)
def on_pulse():
step = bespoke.get_step(8)
this.play_note(walk(scale,step), walk([110,30,60,80],step), 1.0/8)
def walk(list, step):
return list[step % len(list)]
``` | /content/code_sandbox/resource/userdata_original/scripts/walk.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 85 |
```python
#schedule a sequence with a tidal-like pattern notation
def schedule_seq(seq, pitchOffset=0, velocity=80, start=0, bars=1, sustain=1, pan=0, output=None, velocityRandomization=0, panRandomization=0):
if output is None:
output = this.get_caller()
if not type(seq) is list:
seq = [seq]
if l... | /content/code_sandbox/resource/userdata_original/scripts/schedule_sequence.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 287 |
```python
#attach a pulser set to 16n
scale = bespoke.get_scale_range(4,50)
chord = [0,2,4]
progression = [0,2,0,1]
steps = [0,4,8,12]
if not 'idx' in globals():
idx = 0
def on_pulse():
global idx
if bespoke.get_step(16) % 16 in steps:
if bespoke.get_step(16) % 16 == 0:
idx = 0
first = T... | /content/code_sandbox/resource/userdata_original/scripts/chordprogression.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 164 |
```python
import module
if 'osc' in globals():
osc.delete()
osc = module.create("oscillator", 100, 600)
if 'pulser' in globals():
pulser.delete()
pulser = module.create("pulser", 200, 300)
pulser.set("interval",5)
pulser.set_target(module.get("script"))
module.get("script").set_target(osc)
osc.set_target(module... | /content/code_sandbox/resource/userdata_original/scripts/modulecreation.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 184 |
```python
#a collection of tools for building named chords
progression = [('D2', 'M', 1, 1),
('F2', 'M', 1, 1),
('G2', 'min7', 0, 1),
('F#2', 'M7', 0, 1),]
qualities = {}
qualities[''] = [0]
qualities['M'] = [0, 4, 7]
qualities['m'] = [0, 3, 7]
qualities['di... | /content/code_sandbox/resource/userdata_original/scripts/chord_tools.py | python | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 374 |
```c
/*******************************************************
HIDAPI - Multi-Platform library for
communication with HID devices.
Alan Ott
Signal 11 Software
2010-07-03
At the discretion of the user of this library,
this software may be licensed under the terms of the
original HIDAPI license as outlined i... | /content/code_sandbox/libs/psmove/hid_darwin.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 7,831 |
```c
#include "psmove/psmove.h"
#include <stddef.h>
int psmove_count_connected(void) { return 0; }
PSMove *psmove_connect_by_id(int id) { return NULL; }
PSMove *psmove_connect(void) { return NULL; }
enum PSMove_Connection_Type psmove_connection_type(PSMove *move) { return Conn_Unknown; }
int psmove_get_btaddr(PSM... | /content/code_sandbox/libs/psmove/psmove_dummy.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 415 |
```objective-c
/*******************************************************
HIDAPI - Multi-Platform library for
communication with HID devices.
Alan Ott
Signal 11 Software
8/22/2009
At the discretion of the user of this library,
this software may be licensed under the terms of the
original HIDAPI license as out... | /content/code_sandbox/libs/psmove/hidapi.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 3,226 |
```c
/**
* PS Move API - An interface for the PS Move Motion Controller
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copy... | /content/code_sandbox/libs/psmove/psmove.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 4,441 |
```objective-c
/**
* PS Move API - An interface for the PS Move Motion Controller
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the ... | /content/code_sandbox/libs/psmove/include/psmove/psmove.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 1,744 |
```c++
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// a... | /content/code_sandbox/libs/push2/Push2-Usb-Communicator.cpp | c++ | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 2,343 |
```c++
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// a... | /content/code_sandbox/libs/push2/JuceToPush2DisplayBridge.cpp | c++ | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 693 |
```c++
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// a... | /content/code_sandbox/libs/push2/Result.cpp | c++ | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 580 |
```objective-c
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicen... | /content/code_sandbox/libs/push2/Push2-Display.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 522 |
```c++
#include "Push2-Display.h"
namespace ableton {
Push2Display *Push2Display::create()
{
#if BESPOKE_PUSH2_SUPPORT
return new Push2Display;
#else
return nullptr;
#endif
}
NBase::Result Push2Display::Init()
{
#if BESPOKE_PUSH2_SUPPORT
return communicator_.Init(dataSource_);
#else
return {""}; // unreachab... | /content/code_sandbox/libs/push2/Push2-Display.cpp | c++ | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 99 |
```objective-c
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicen... | /content/code_sandbox/libs/push2/Push2-UsbCommunicator.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 948 |
```objective-c
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicen... | /content/code_sandbox/libs/push2/include/push2/Push2-Bitmap.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 658 |
```objective-c
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicen... | /content/code_sandbox/libs/push2/include/push2/Macros.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 239 |
```objective-c
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicen... | /content/code_sandbox/libs/push2/include/push2/JuceToPush2DisplayBridge.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 423 |
```objective-c
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicen... | /content/code_sandbox/libs/push2/include/push2/Result.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 446 |
```c
/*
* Synchronous I/O functions for libusb
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MER... | /content/code_sandbox/libs/push2/modules/libusb/sync.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 2,794 |
```c
/* -*- Mode: C; indent-tabs-mode:t ; c-basic-offset:8 -*- */
/*
* Core functions for libusb
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WAR... | /content/code_sandbox/libs/push2/modules/libusb/core.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 21,448 |
```c
/* -*- Mode: C; indent-tabs-mode:t ; c-basic-offset:8 -*- */
/*
* I/O functions for libusb
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARR... | /content/code_sandbox/libs/push2/modules/libusb/io.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 25,652 |
```objective-c
#define LIBUSB_NANO 11223
``` | /content/code_sandbox/libs/push2/modules/libusb/version_nano.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 10 |
```c
/* -*- Mode: C; indent-tabs-mode:t ; c-basic-offset:8 -*- */
/*
* Hotplug functions for libusb
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY ... | /content/code_sandbox/libs/push2/modules/libusb/hotplug.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 2,799 |
```objective-c
/*
* Public libusb header file
* For more information, please visit: path_to_url
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WAR... | /content/code_sandbox/libs/push2/modules/libusb/libusb.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 17,396 |
```objective-c
/*
* Internal header for libusb
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MER... | /content/code_sandbox/libs/push2/modules/libusb/libusbi.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 10,011 |
```objective-c
/* -*- Mode: C; indent-tabs-mode:t ; c-basic-offset:8 -*- */
/*
* Hotplug support for libusb
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITH... | /content/code_sandbox/libs/push2/modules/libusb/hotplug.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 592 |
```c
/*
* libusb strerror code
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or ... | /content/code_sandbox/libs/push2/modules/libusb/strerror.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 1,816 |
```objective-c
/* This file is parsed by m4 and windres and RC.EXE so please keep it simple. */
#include "version_nano.h"
#ifndef LIBUSB_MAJOR
#define LIBUSB_MAJOR 1
#endif
#ifndef LIBUSB_MINOR
#define LIBUSB_MINOR 0
#endif
#ifndef LIBUSB_MICRO
#define LIBUSB_MICRO 21
#endif
#ifndef LIBUSB_NANO
#define LIBUSB_NANO 0
#e... | /content/code_sandbox/libs/push2/modules/libusb/version.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 118 |
```c
/* -*- Mode: C; indent-tabs-mode:t ; c-basic-offset:8 -*- */
/*
* USB descriptor handling functions for libusb
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* ... | /content/code_sandbox/libs/push2/modules/libusb/descriptor.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 9,425 |
```c
/*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR... | /content/code_sandbox/libs/push2/modules/libusb/os/netbsd_usb.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 4,445 |
```objective-c
/*
* libusb synchronization on Microsoft Windows
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implie... | /content/code_sandbox/libs/push2/modules/libusb/os/threads_windows.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 589 |
```c++
/*
* Haiku Backend for libusb
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILI... | /content/code_sandbox/libs/push2/modules/libusb/os/haiku_usb_backend.cpp | c++ | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 3,829 |
```objective-c
/*
* libusb synchronization using POSIX Threads
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied... | /content/code_sandbox/libs/push2/modules/libusb/os/threads_posix.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 425 |
```c
/* -*- Mode: C; c-basic-offset:8 ; indent-tabs-mode:t -*- */
/*
* Linux usbfs backend for libusb
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT AN... | /content/code_sandbox/libs/push2/modules/libusb/os/linux_netlink.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 2,975 |
```objective-c
/*
* windows UsbDk backend for libusb 1.0
* Authors:
* Dmitry Fleytman <dmitry@daynix.com>
* Pavel Gurvich <pavel@daynix.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it... | /content/code_sandbox/libs/push2/modules/libusb/os/windows_usbdk.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 972 |
```c
/*
* poll_posix: poll compatibility wrapper for POSIX systems
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implie... | /content/code_sandbox/libs/push2/modules/libusb/os/poll_posix.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 575 |
```c
/*
* Windows CE backend for libusb 1.0
* Large portions taken from Windows backend, which is
* With contributions from Michael Plante, Orin Eman et al.
* Parts of this code adapted from libusb-win32-v1 by Stephan Meyer
* Major code testing contribution by Xiaofan Chen
*
* This library is free software; you ... | /content/code_sandbox/libs/push2/modules/libusb/os/wince_usb.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 7,168 |
```c
/*
* poll_windows: poll compatibility wrapper for Windows
* With contributions from Michael Plante, Orin Eman et al.
* Parts of poll implementation from libusb-win32, by Stephan Meyer et al.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Genera... | /content/code_sandbox/libs/push2/modules/libusb/os/poll_windows.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 5,750 |
```objective-c
/*
* Windows CE backend for libusb 1.0
* Portions taken from Windows backend, which is
* With contributions from Michael Plante, Orin Eman et al.
* Parts of this code adapted from libusb-win32-v1 by Stephan Meyer
* Major code testing contribution by Xiaofan Chen
*
* This library is free software; ... | /content/code_sandbox/libs/push2/modules/libusb/os/wince_usb.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 1,324 |
```c
/*
* windows backend for libusb 1.0
* With contributions from Michael Plante, Orin Eman et al.
* Parts of this code adapted from libusb-win32-v1 by Stephan Meyer
* HID Reports IOCTLs inspired from HIDAPI by Alan Ott, Signal 11 Software
* Hash table functions adapted from glibc, by Ulrich Drepper et al.
* Maj... | /content/code_sandbox/libs/push2/modules/libusb/os/windows_nt_common.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 4,752 |
```objective-c
/*
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR... | /content/code_sandbox/libs/push2/modules/libusb/os/sunos_usb.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 506 |
```objective-c
/*
* Haiku Backend for libusb
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCH... | /content/code_sandbox/libs/push2/modules/libusb/os/haiku_usb.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 717 |
```objective-c
/*
* usbfs header structures
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHA... | /content/code_sandbox/libs/push2/modules/libusb/os/linux_usbfs.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 1,594 |
```c++
/*
* Haiku Backend for libusb
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILI... | /content/code_sandbox/libs/push2/modules/libusb/os/haiku_usb_raw.cpp | c++ | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 1,897 |
```objective-c
/*
* Windows backend for libusb 1.0
* With contributions from Michael Plante, Orin Eman et al.
* Parts of this code adapted from libusb-win32-v1 by Stephan Meyer
* Major code testing contribution by Xiaofan Chen
*
* This library is free software; you can redistribute it and/or
* modify it under th... | /content/code_sandbox/libs/push2/modules/libusb/os/windows_winusb.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 6,909 |
```objective-c
#ifndef LIBUSB_POLL_POSIX_H
#define LIBUSB_POLL_POSIX_H
#define usbi_write write
#define usbi_read read
#define usbi_close close
#define usbi_poll poll
int usbi_pipe(int pipefd[2]);
#endif /* LIBUSB_POLL_POSIX_H */
``` | /content/code_sandbox/libs/push2/modules/libusb/os/poll_posix.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 60 |
```c
/*
* libusb synchronization on Microsoft Windows
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty... | /content/code_sandbox/libs/push2/modules/libusb/os/threads_windows.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 1,583 |
```objective-c
/*
* Windows backend common header for libusb 1.0
*
* This file brings together header code common between
* the desktop Windows backends.
* With contributions from Michael Plante, Orin Eman et al.
* Parts of this code adapted from libusb-win32-v1 by Stephan Meyer
* Major code testing contribution... | /content/code_sandbox/libs/push2/modules/libusb/os/windows_nt_common.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 505 |
```c
/*
* windows backend for libusb 1.0
* With contributions from Michael Plante, Orin Eman et al.
* Parts of this code adapted from libusb-win32-v1 by Stephan Meyer
* HID Reports IOCTLs inspired from HIDAPI by Alan Ott, Signal 11 Software
* Hash table functions adapted from glibc, by Ulrich Drepper et al.
* Maj... | /content/code_sandbox/libs/push2/modules/libusb/os/windows_winusb.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 39,379 |
```c
/* -*- Mode: C; indent-tabs-mode:nil -*- */
/*
* darwin backend for libusb 1.0
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; withou... | /content/code_sandbox/libs/push2/modules/libusb/os/darwin_usb.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 19,430 |
```c
/* -*- Mode: C; c-basic-offset:8 ; indent-tabs-mode:t -*- */
/*
* Linux usbfs backend for libusb
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT AN... | /content/code_sandbox/libs/push2/modules/libusb/os/linux_udev.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 2,302 |
```c++
/*
*
* Authors:
* Michael Lotz <mmlr@mlotz.ch>
*/
#include "haiku_usb.h"
#include <cstdio>
#include <Directory.h>
#include <Entry.h>
#include <Looper.h>
#include <Messenger.h>
#include <Node.h>
#include <NodeMonitor.h>
#include <Path.h>
#include <cstring>
class WatchedEntry {
public:
WatchedEntry(BMess... | /content/code_sandbox/libs/push2/modules/libusb/os/haiku_pollfs.cpp | c++ | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 2,093 |
```objective-c
/*
* Windows compat: POSIX compatibility wrapper
* With contributions from Michael Plante, Orin Eman et al.
* Parts of poll implementation from libusb-win32, by Stephan Meyer et al.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Gener... | /content/code_sandbox/libs/push2/modules/libusb/os/poll_windows.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 1,153 |
```c
/*
* windows UsbDk backend for libusb 1.0
* Authors:
* Dmitry Fleytman <dmitry@daynix.com>
* Pavel Gurvich <pavel@daynix.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it ... | /content/code_sandbox/libs/push2/modules/libusb/os/windows_usbdk.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 7,147 |
```objective-c
/*
* Windows backend common header for libusb 1.0
*
* This file brings together header code common between
* the desktop Windows and Windows CE backends.
* With contributions from Michael Plante, Orin Eman et al.
* Parts of this code adapted from libusb-win32-v1 by Stephan Meyer
* Major code testi... | /content/code_sandbox/libs/push2/modules/libusb/os/windows_common.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 1,049 |
```c
/*
* libusb synchronization using POSIX Threads
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty ... | /content/code_sandbox/libs/push2/modules/libusb/os/threads_posix.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 482 |
```c
/*
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICU... | /content/code_sandbox/libs/push2/modules/libusb/os/sunos_usb.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 9,776 |
```objective-c
/*
*/
#ifndef _USB_RAW_H_
#define _USB_RAW_H_
#include <USB3.h>
#define B_USB_RAW_PROTOCOL_VERSION 0x0015
#define B_USB_RAW_ACTIVE_ALTERNATE 0xffffffff
typedef enum {
B_USB_RAW_COMMAND_GET_VERSION = 0x1000,
B_USB_RAW_COMMAND_GET_DEVICE_DESCRIPTOR = 0x2000,
B_USB_RAW_COMMAND_GET_CONFIGURATION_DES... | /content/code_sandbox/libs/push2/modules/libusb/os/haiku_usb_raw.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 875 |
```c
/*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR... | /content/code_sandbox/libs/push2/modules/libusb/os/openbsd_usb.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 5,136 |
```c
/* -*- Mode: C; c-basic-offset:8 ; indent-tabs-mode:t -*- */
/*
* Linux usbfs backend for libusb
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT AN... | /content/code_sandbox/libs/push2/modules/libusb/os/linux_usbfs.c | c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 21,546 |
```objective-c
/*
* darwin backend for libusb 1.0
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* ... | /content/code_sandbox/libs/push2/modules/libusb/os/darwin_usb.h | objective-c | 2016-08-14T14:36:36 | 2024-08-16T18:55:21 | BespokeSynth | BespokeSynth/BespokeSynth | 4,019 | 1,042 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.