<commit_before>#
# MidiCtrl - Makefile for midi-ctrl sketches
#
# (c)  July 2011 - <NAME> - <EMAIL>
#

# get the current OS
UNAME=$(shell uname)
ISWIN=$(findstring CYGWIN,$(UNAME))
ISMAC=$(findstring Darwin,$(UNAME))

CURDIR := $(dir $(lastword $(MAKEFILE_LIST)))
MIDICTRL_BASE_DIR  ?= $(abspath $(CURDIR)..)

ifneq (,$(ISMAC))
# default location of application folder
APP_DIR ?= /Applications/MidiCtrl.app/Contents/Resources/Java
endif

ifneq (,$(ISWIN))
APP_DIR ?= C:/Program Files/MidiCtrl
endif

# prepare the java settings
JAR_DIR := $(APP_DIR)
CLASSPATH := $(subst jar ,jar:,$(wildcard $(JAR_DIR)/*.jar))
JAVA_FLAGS := -Duser.dir="$(MIDICTRL_BASE_DIR)" -cp "$(CLASSPATH)"

# get the current sketch name
PDEDIR ?= .
CURRENT_DIR := $(shell pwd)
PDENAME := $(notdir $(CURRENT_DIR))
PDEFILES=$(wildcard $(PDEDIR)/*.pde)

# settings for minicommand2
CC = avr-gcc
CXX = avr-g++
OBJCOPY = avr-objcopy
AVR_ARCH = atmega64
F_CPU = 16000000L
CORE = minicommand2

MIDI_INPUT_PORT ?= 1
MIDI_OUTPUT_PORT ?= 1

# add the core directory to the include path
MIDICTRL_LIB_DIRS += $(MIDICTRL_BASE_DIR)/hardware/cores/$(CORE)

all: $(PDENAME).hex

# Read out the libraries from the midi ctrl environment
.midictrl.flags: $(PDEFILES)
	@java $(JAVA_FLAGS) processing.app.debug.Compiler --board $(CORE) --make $(CURRENT_DIR)/$(PDENAME).pde > $@

include .midictrl.flags
include $(CURDIR)MidiCtrl.mk<commit_msg>Add sequencer by hand in sketches<commit_after>#
# MidiCtrl - Makefile for midi-ctrl sketches
#
# (c)  July 2011 - <NAME> - <EMAIL>
#

# get the current OS
UNAME=$(shell uname)
ISWIN=$(findstring CYGWIN,$(UNAME))
ISMAC=$(findstring Darwin,$(UNAME))

CURDIR := $(dir $(lastword $(MAKEFILE_LIST)))
MIDICTRL_BASE_DIR  ?= $(abspath $(CURDIR)..)

ifneq (,$(ISMAC))
# default location of application folder
APP_DIR ?= /Applications/MidiCtrl.app/Contents/Resources/Java
endif

ifneq (,$(ISWIN))
APP_DIR ?= C:/Program Files/MidiCtrl
endif

# prepare the java settings
JAR_DIR := $(APP_DIR)
CLASSPATH := $(subst jar ,jar:,$(wildcard $(JAR_DIR)/*.jar))
JAVA_FLAGS := -Duser.dir="$(MIDICTRL_BASE_DIR)" -cp "$(CLASSPATH)"

# get the current sketch name
PDEDIR ?= .
CURRENT_DIR := $(shell pwd)
PDENAME := $(notdir $(CURRENT_DIR))
PDEFILES=$(wildcard $(PDEDIR)/*.pde)

# settings for minicommand2
CC = avr-gcc
CXX = avr-g++
OBJCOPY = avr-objcopy
AVR_ARCH = atmega64
F_CPU = 16000000L
CORE = minicommand2

MIDI_INPUT_PORT ?= 1
MIDI_OUTPUT_PORT ?= 1

# add the core directory to the include path
MIDICTRL_LIB_DIRS += $(MIDICTRL_BASE_DIR)/hardware/cores/$(CORE)
MIDICTRL_LIBS += Sequencer

all: $(PDENAME).hex

# Read out the libraries from the midi ctrl environment
.midictrl.flags: $(PDEFILES)
	@java $(JAVA_FLAGS) processing.app.debug.Compiler --board $(CORE) --make $(CURRENT_DIR)/$(PDENAME).pde > $@

include .midictrl.flags
include $(CURDIR)MidiCtrl.mk
{'fraction_non_alphanumeric': 0.1580246913580247, 'fraction_numerical': 0.012698412698412698, 'mean_word_length': 5.344519015659955, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1032674', 'n_tokens_mistral': 1146, 'n_tokens_neox': 1077, 'n_words': 258}