Skip to content

Commit 21aad7b

Browse files
committed
Initial commit
0 parents  commit 21aad7b

6 files changed

Lines changed: 72 additions & 0 deletions

File tree

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/build
2+
/dist
3+
/*.so
4+
/*.dylib
5+
/*.dll
6+
.DS_Store

Makefile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# If RACK_DIR is not defined when calling the Makefile, default to two directories above
2+
RACK_DIR ?= ../..
3+
4+
# FLAGS will be passed to both the C and C++ compiler
5+
FLAGS +=
6+
CFLAGS +=
7+
CXXFLAGS +=
8+
9+
# Careful about linking to shared libraries, since you can't assume much about the user's environment and library search path.
10+
# Static libraries are fine, but they should be added to this plugin's build system.
11+
LDFLAGS +=
12+
13+
# Add .cpp files to the build
14+
SOURCES += $(wildcard src/*.cpp)
15+
16+
# Add files to the ZIP package when running `make dist`
17+
# The compiled plugin and "plugin.json" are automatically added.
18+
DISTRIBUTABLES += res
19+
DISTRIBUTABLES += $(wildcard LICENSE*)
20+
DISTRIBUTABLES += $(wildcard presets)
21+
22+
# Include the Rack plugin Makefile framework
23+
include $(RACK_DIR)/plugin.mk

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Matrix Sequncer

plugin.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"slug": "matrix-sequencer",
3+
"name": "Matrix Sequencer",
4+
"version": "2.0.0",
5+
"license": "AGPL-3.0-only",
6+
"brand": "Matrix Sequencer",
7+
"author": "R3tr0",
8+
"authorEmail": "offer.nik.kor@gmail.com",
9+
"authorUrl": "",
10+
"pluginUrl": "",
11+
"manualUrl": "",
12+
"sourceUrl": "",
13+
"donateUrl": "",
14+
"changelogUrl": "",
15+
"modules": []
16+
}

src/plugin.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#include "plugin.hpp"
2+
3+
4+
Plugin* pluginInstance;
5+
6+
7+
void init(Plugin* p) {
8+
pluginInstance = p;
9+
10+
// Add modules here
11+
// p->addModel(modelMyModule);
12+
13+
// Any other plugin initialization may go here.
14+
// As an alternative, consider lazy-loading assets and lookup tables when your module is created to reduce startup times of Rack.
15+
}

src/plugin.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#pragma once
2+
#include <rack.hpp>
3+
4+
5+
using namespace rack;
6+
7+
// Declare the Plugin, defined in plugin.cpp
8+
extern Plugin* pluginInstance;
9+
10+
// Declare each Model, defined in each module source file
11+
// extern Model* modelMyModule;

0 commit comments

Comments
 (0)