-
If you don’t have homebrew (just type
brew -v
in a terminal to test), I adviseyou to install it as it makes it easier to install apps, command line tools, and similar things, as well to update them. To do that, just run this from command line:/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
Test if you have sbcl (
sbcl -v
) otherwise install by running:brew install sbcl
-
Install Visual Studio Code if you don't have it. You can do this by running:
brew install --cask visual-studio-code
This file contains 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 numpy as np | |
import scipy.signal.windows as sciwins | |
import librosa | |
import matplotlib.pyplot as plt | |
## The idea of this script is to calculate the normalization factor for a given window function | |
## The normalization factor is the reciprocal of the sum of the values of the chosen frame | |
## The normalization factor is first calculated for a very short sinusoidal signal, with the | |
## frequency set in the middle of the spectrum and amplitude set to 1 |
This file contains 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
// By using this, it is possible to get all messages coming in a specific port | |
thisProcess.openUDPPort(9000); | |
( | |
f = { |msg, time, replyAddr, recvPort| | |
msg.postln;"Working with any OSC path".postln; | |
}; | |
thisProcess.addOSCRecvFunc(f); | |
); |
This file contains 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 scamp | |
import random | |
### IDEIA GERAL: criar duas camadas rítmicas, independentes, que façam a base e o tamborim do samba | |
### além disso, vamos usar um plugin VST (no reaper ou outro programa) e criar uma parte MIDI ao invés de uma parte usual | |
### (se tiver dificuldade, adapte o código usando notas de um piano apenas para compreender o processo geral) | |
## sessão SCAMP | |
s = scamp.Session() |
2. Follow instructions here (https://www.tensorflow.org/install/pip?hl=pt-br)
2.1 - Create environmente:
conda create -n mlconda_3.10.11 python==3.10.11
This file contains 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 requests | |
from bs4 import BeautifulSoup | |
from selenium import webdriver | |
import pandas as pd | |
def getWikiAvesDF(filename=None,savecsv=False): | |
""" | |
Scrape the Wikipedia Aves table and return a DataFrame with 'Espécie' and 'Nome Comum' columns. | |
Parameters: |
This file contains 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
## Xbindkey configs to allow to use combinations of control and alt as modifiers to emulate Home, End, PageUp, and PageDown keybinds | |
## enter these lines in ~/.xbindkeysrc | |
"xdotool keyup Control+Alt_L+Left && xdotool key Home" | |
control+alt + Left | |
"xdotool keyup Shift+Control+Alt_L+Left && xdotool key Shift+Home" | |
shift+control+alt + Left |
This file contains 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 snscrape.modules.twitter as sntwitter | |
trecho_do_palindromo = "marrocos" | |
palindromos = [] | |
for i,tweet in enumerate(sntwitter.TwitterSearchScraper(f'#palindromo + {trecho_do_palindromo}').get_items()): | |
if i>100: | |
break | |
palindromos.append([tweet.date, "@"+tweet.user.username, tweet.rawContent]) |
This file contains 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
## 1. instalar AUR do ndi-sdk-embedded | |
instalei o SDK do NDI (versão 4) via pacote AUR: ndi-sdk-embedded (4.5.3....) | |
## 2. GEM instalado via pamac: | |
pacote pd-gem | |
### 3. download da versão compilada do pd_ndi |
NewerOlder