Skip to content

Instantly share code, notes, and snippets.

View lossius's full-sized avatar

Trond Lossius lossius

View GitHub Profile
@lossius
lossius / rewire_test.maxpat
Last active February 1, 2020 11:40
Max patch for testing host control issue with "pause" message when Reaper is a Rewire host
{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 8,
"minor" : 1,
"revision" : 2,
"architecture" : "x64",
"modernui" : 1
}
@lossius
lossius / gist:898c12db67bef7faf502ad1943995c2d
Created December 10, 2019 18:30
json file generated by Compass plugin
{
"Name": "COMPASS Decoder loudspeaker directions.",
"Description": "This configuration file was created with the COMPASS Decoder v1.0.2 plug-in. 9 Feb 2019 3:50:12pm",
"LoudspeakerLayout": {
"Name": "Loudspeaker Directions",
"Loudspeakers": [
{
"Azimuth": 29.88,
"Elevation": 23.58,
"Radius": 2.825,
Process: REAPER [2654]
Path: /Applications/REAPER64.app/Contents/MacOS/REAPER
Identifier: com.cockos.reaper
Version: 6.10.0 (6.10.0)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: REAPER [2654]
User ID: 503
Date/Time: 2019-12-10 10:13:12.516 +0100
Process: REAPER [10992]
Path: /Applications/REAPER64.app/Contents/MacOS/REAPER
Identifier: com.cockos.reaper
Version: 6.10.0 (6.10.0)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: REAPER [10992]
User ID: 503
Date/Time: 2019-12-10 11:19:04.640 +0100
@lossius
lossius / gist:9d857503ff4eed7ba9d81946d55ae4e5
Created November 24, 2019 09:15
Crash 2 while scanning VSTs
Process: REAPER [18783]
Path: /Applications/Reaper 6 Beta/REAPER64.app/Contents/MacOS/REAPER
Identifier: REAPER
Version: 5.99.62 81dfce7 (5.99.62 81dfce7)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: REAPER [18783]
User ID: 503
Date/Time: 2019-11-24 10:06:41.402 +0100
Process: REAPER [18783]
Path: /Applications/Reaper 6 Beta/REAPER64.app/Contents/MacOS/REAPER
Identifier: REAPER
Version: 5.99.62 81dfce7 (5.99.62 81dfce7)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: REAPER [18783]
User ID: 503
Date/Time: 2019-11-24 10:06:41.402 +0100
@lossius
lossius / nanoc_excerpt.rb
Created December 5, 2016 16:01
Updated method for posting blog excerpt to index pages using Nanoc
def get_post_start(post)
content = post.compiled_content
if /<!-- more -->/.match(content)
content = content.partition('<!-- more -->').first +
"<div class='read-more'><a href='#{post.path}'>Listen and continue reading &rsaquo;</a></div>"
end
return content
end
@lossius
lossius / gist:8473cc80b915e24a5bcb3114a0a738ec
Created September 22, 2016 09:28
mxj buf.Op addition for calculating RMS
public void rms(int channel) {
float[] samps = MSPBuffer.peek(bufname, channel);
double total = 0;
for (int i=0;i<samps.length;i++) {
total += samps[i]*samps[i];
}
outlet(0, Math.sqrt(total/samps.length));
}
Trond:jamoma2 lossius$ mkdir build-xcode
Trond:jamoma2 lossius$ cd build-xcode/
Trond:build-xcode lossius$ cmake -G Xcode ..
-- The C compiler identification is AppleClang 7.3.0.7030031
-- The CXX compiler identification is AppleClang 7.3.0.7030031
-- Check for working C compiler using: Xcode
-- Check for working C compiler using: Xcode -- works
-- Detecting C compiler ABI info
@lossius
lossius / gist:3ccf52f7c9defc146913
Created September 17, 2015 08:34
Bang crash in j.parameter
Process: Max [27681]
Path: /Applications/Max.app/Contents/MacOS/Max
Identifier: com.cycling74.Max
Version: 7.0.6 [e494ac0] (7.0.6)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Max [27681]
User ID: 501
Date/Time: 2015-09-17 10:34:33.182 +0200